Repository navigation
§ 3.4 S7: parameterize class C — the display facet, the context hop, and the vocabulary by ROLE - #21
Conversation
… halves of one seam
openDox-spec `docs/front-end-package-boundary.md` § 4.1 asks for the front-end
analogue of `route_extension.collect_bindings`, and this is it — the AUTHORITY
in Python, its MIRROR in the language the shell is written in, and one
vocabulary held across both.
THE PROBLEM, in the note's own measurement: `src/opendox/web/` is "42 blobs,
30,585 lines, and NO package boundary at all", while the Python side has
answered the same question three times — a contributed ROUTE
(`route_extension`), a late REACH into the consumer (`consumer_reach`), and a
registered PROFILE (`domain_profile` + `profile_proxy`). § 4.1's instruction is
to reuse those shapes rather than invent a fourth, so:
route_extension.RouteBinding -> ViewBinding
route_extension.collect_bindings -> collect_view_bindings
consumer_reach.route_column -> resolveView / requireView
profile_proxy.profile_openxfactory -> host_view_extensions
`src/opendox/view_extension.py` is the authority. `ViewBinding` is frozen and
validated where it is CONSTRUCTED, `RouteBinding.__post_init__`'s discipline;
`ViewExtension` is a `runtime_checkable` Protocol and NOT an ABC, for
`RouteExtension`'s reason — an extension authored in the repository that PINS
this one must conform WITHOUT inheriting from anything here, since nominal
conformance would make the seam the dependency it was drawn to remove.
`collect_view_bindings()` flattens contributed bindings into ONE mount order and
refuses four things: a non-conforming extension, a `views()` that yields
anything else, two bindings claiming one (region, id) slot, and a non-class-B
binding declaring a route another column contributed.
THE FOURTH REFUSAL IS RULED Q3 MADE EXECUTABLE (#656 comment 5642758731): "a
route constant travels with the binding that calls it, never with the model that
declares it". It is derived from the assembly rather than asserted about it — the
caller passes the `RouteBinding`s another column actually CONTRIBUTED, because a
literal ownership table here would be a second copy of the routing that drifts
the moment a column adds a route. Class B is exempt BY CONSTRUCTION: a gate-loop
binding naming a gate route is the boundary working (§ 4.5 assertion 2).
ORDER IS DECLARATION ORDER, FLAT, and the difference from `collect_bindings` is
argued rather than inherited: that function re-orders exact before prefix
because an HTTP dispatcher consults its table until something matches. Nothing
here is consulted that way — a panel mounts into the ONE region it names, and
two panels in one region are a refused collision rather than a race — so
re-ordering would only take away the one thing declaration order is good for.
THE HOST FACET, AND TWO ABSENCES WITH TWO ANSWERS. `host_view_extensions()`
reads `VIEW_EXTENSIONS` off the ONE registered profile through the SAME lazy
proxy `build_server()` reads `ROUTE_EXTENSIONS` through (RULED ASK-2 option (2)).
NO HOST AT ALL REFUSES: `ProfileNotRegistered` is a `RuntimeError` and passes
through untouched, which is ASK-2's "refusal, not a default". A HOST WITHOUT THE
FACET gets an EMPTY CONSUMER COLUMN: `ProfileFacetMissing` subclasses
`AttributeError` precisely so `getattr(..., default)` answers, and the empty
answer is correct where an empty `ROUTE_EXTENSIONS` would be a defect — a server
missing its contributed ROUTES looks fine until a path 404s, whereas a shell
with no contributed PANELS is the shell this leg ships today. Refusing there
would impose a flag day on every host that has not yet grown the facet, which is
every host, today. AND THE ABSENCE IS NAMED, NEVER SILENT: `view_manifest()`
carries `host_facet` = "declared" | "absent" with the facet and profile names,
which is § 4.3 point 5's "renders its region empty WITH A NAMED REASON" applied
to a facet.
`src/opendox/web/views/view_extension.js` is the mirror, named by the note's own
S3 row (every other module in that folder is kebab-case; this one is spelled
like the two Python files it mirrors, because three files and one seam should
have one spelling). It reads the manifest back out of `/capabilities` and
applies the SAME four refusals to it, so both halves check the same thing
against the same facts. `lookupView` is the OPTIONAL reach (null, and the caller
decides what absence means); `requireView` is the REQUIRED one (a refusal that
names the layering, `consumer_reach`'s posture); `resolveView` loads the
binding's module at first use and refuses a binding whose named export is
missing, because a binding that cannot be mounted must not look registered.
A malformed manifest REFUSES while an absent one is an empty column: failing
closed is the only safe answer for a payload that decides which code the shell
imports, and § 4.4's vendor policy is why the module specifier is held to a
bundle-relative './…js' — a contributed binding is exactly the hole "no CDN, no
remote script" would otherwise leak through.
BOTH FILES ARE CREATED, NOT ARRIVED: neither has a row in openxFactory's
`docs/opendox-carve-manifest.yaml`, which is what Q-L1 means by "new files are
created, not arrived". The census row in `tests/test_consumer_reach.py` lands in
this same commit because it is a claim about this module — `opendox.view_extension`
imports NOTHING from `openxdox` and reads the host's facet through the proxy, so
it belongs in `NEUTRAL_MODULES` and not in `STILL_REACHING`, and the lawful
direction is that the column CONTRIBUTING a view imports this module rather than
the other way round.
Lane: openxfactory-4-opendox-extraction
Refs opensoft/openXfactory#656
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
… a registry lookup § 4.1 names this edit by line number: "app.js stops importing class-B modules directly. Its line 43 becomes a lookup in the collected bindings, and a shell built with no gate binding registered renders the tab strip WITHOUT the gate bar rather than failing to load." That is what this commit does, and nothing else. THE HARDCODED `TABS` TABLE BECOMES THE CORE ARM OF THE REGISTRY. `CORE_VIEWS` holds the same seven views as `ViewBinding`s and is collected through `collectViewBindings()` alongside whatever the consumer column contributed — the same order and the same SINGLE collection `serve.build_server()` uses for routes, and for the same reason: a collision between a contributed panel and one of the shell's own must be refused before anything mounts, rather than discovered as a panel that silently never rendered. A core binding declares its `module` and `entry` truthfully even though it also carries a `mount` closure, because a CONTRIBUTED binding carries only those two and is loaded through `resolveView()` — the core arm always holds its own view modules statically, since they are the product. THE TAB STRIP IS DERIVED FROM THE REGISTRY, not declared beside it. A tab is simply a binding that declared a `control`; a binding with no control — the gate bar, and every overlay binding after it — is in the collected order and is not a tab, which is why the filter is one expression in `initTabs` and not a second list to keep in step. THE GATE BAR IS A BINDING NOW: class B, `optional: true`, declaring `/actions/gate/ratify` as RULED Q3's "a route constant travels with the binding that calls it". Three things are true that were not true before. A shell assembled without it renders the viewer with NO GATE BAR instead of failing to load — `views/viewer.js` already tolerates a null `mountGate` (`const mountGate = o.mountGate || null`), so the absence was always representable downstream and was simply unreachable from here, and no second file is touched. `gate.js`:120's route says in one checkable place whose it is. And the entry sits in the CORE arm TRANSITIONALLY: slice S5 moves the four class-B files behind a binding openXdox supplies, at which point this entry is deleted and the identical binding arrives through `contributedViewBindings()` with nothing else in this file changing — which is the test of whether the seam was drawn in the right place. `routes` IS DELIBERATELY UNDECLARED ON EVERY CORE TAB BINDING and that is not an omission. Q3 makes `routes` a declaration of OWNERSHIP, not a transitive inventory of every path a module's import graph happens to touch. Exactly one core binding owns a route that way today: `gate.bar`. The census's eighteen remaining route-ownership breaches are FILE-level facts (§ 4.5 assertion 2), measured by slice S1's `tests/test_web_boundary.py` and cleared by S4 and S6; declaring them here would encode S4's answers before S4 has done its work, and would refuse this very assembly, since `/source/` is a contributed prefix today. THE COLLECTED REGISTRY IS HANDED TO EVERY VIEW as the context key `views`, so an OPTIONAL contributed panel is asked for by id — `lookupView(ctx.views, "…")`, null when the column that supplies it is not installed. Slice S2's intent chips are the first such reader: `wheel-intent` and `dispose-intent` are declared regions already, so S2 adds an optional binding and two `lookupView` calls and touches nothing here. The consumer column is read out of the `/capabilities` payload this render already fetched (§ 4.3's "no new route and no second fetch"). It is EMPTY at this slice and on every static image, so the shell renders exactly as it did before — the note's S3 row in its own words: "nothing is contributed yet, so the shell renders exactly as today with an empty extension tuple". The server-side line that publishes a manifest (`capabilities["views"] = view_manifest(...)`) is slice S5's, inside `serve.py`'s own declared-edit window, which the in-flight ASK-7 act owns this hour. `index.html` IS NOT TOUCHED. A `data-region` attribute would be a second spelling of an id the shell already carries, and an added attribute is in none of the RULED `edit_classes` (`import rewrites | path constants | adapter calls`), so declaring it would mean inventing an edit class rather than using one. The id is the declaration; the registry's `REGIONS` table plus a drift test against the shell's existing ids is what makes it a contract. Q-L1: `src/opendox/web/app.js` is an ARRIVED file. Its 37 edited lines are declared on its row of openxFactory's `docs/opendox-carve-manifest.yaml` by openxFactory PR #1001, which lands FIRST — one `import rewrites` line (43) and 36 `adapter calls` lines. `verify-carve-arrival.py`'s `_check_declared_lines` over all 123 `opendox_code` rows against this branch: app.js DECLARED, 60 verbatim rows byte-identical, 0 refusals. Lane: openxfactory-4-opendox-extraction Refs opensoft/openXfactory#656 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
…ommit
50 assertions over the seam, and the file is added to `validate`'s explicit
`--noconftest` list in THIS commit rather than a later one — the discipline
§ 4.5 states for slice S1 ("added to that list in the SAME commit") and the one
its three neighbours already keep: `test_leg_shape.py`, `test_consumer_reach.py`
and `test_profile_registration.py` each arrived that way. A test that is not in
the list is not run, and a seam nobody runs is a description.
WHAT IS ASSERTED, in six groups.
1. A malformed binding refuses WHERE IT IS DECLARED and the message says why —
parametrized over every field: the id grammar, an undeclared region, a module
specifier that is root-relative / absolute / climbs out of the bundle with
`..`, an entry that is a callable rather than the NAME of an export, an
unknown class, non-tuple routes, a route not rooted at '/'.
2. Collection: a non-conforming extension names the member it lacks; two
bindings in one (region, id) slot refuse and the message names BOTH modules;
one id in two different regions is NOT a collision; the core arm comes
through an EMPTY consumer column unchanged; and collecting nothing at all is
an empty tuple rather than a refusal, which is this slice's own case and
every static image's.
3. RULED Q3, executable: a class-A binding declaring a gate route another column
contributed is REFUSED, and the refusal quotes the rule. Class C and the
transitional `?` are in scope too (§ 4.5 assertion 2's "class A, class C AND
the transitional `?`, which is where most of the breaches actually sit"); a
class-B binding declaring the SAME route is allowed, because a gate-loop
binding naming a gate route is the boundary working. With no contributed
routes nothing can breach — there is nothing to breach.
4. The host facet through the ONE registered profile: the facet comes off it; a
host WITHOUT the facet contributes an empty column; NO host at all REFUSES
rather than answering empty (ASK-2's "refusal, not a default"); and importing
the registry resolves no profile at all, which is the whole value of the lazy
proxy. The manifest declares its `schema_version` and `kind` and NAMES the
absence rather than being silent about it.
5. Drift, so the two halves cannot diverge: both declare the same regions in the
same order and the same classes; every "dom" region is an element
`index.html` actually carries (the id IS the declaration — this is what makes
the unedited shell a contract rather than an assumption); no "shell" region
pretends to have one; every core tab binding names a dom region, or it would
be a blank tab; `app.js` no longer imports the gate module, declares the gate
bar as an OPTIONAL class-B binding, and wires the doc list through the
registry.
6. The JavaScript half driven by the REAL file under `node`, skipped and never
failed where node is absent: the core arm collects with an empty consumer
column; a slot collision and a contributed gate route both refuse; a
malformed `/capabilities` manifest refuses while an absent one is an empty
column; ONE VIEW WIRED END TO END — `resolveView` loads the real
`views/docs.js` from its binding and hands back the `renderDocs` export; a
contributed panel mounts into its region under a minimal DOM; an absent
OPTIONAL binding is null and an absent REQUIRED one refuses; and a "shell"
region asked for a standing element refuses rather than returning a null the
caller would read as "the column is not installed".
One of the drift assertions is a REAL DEFECT kept as a test rather than a
memory: the client's slot key joins a binding's region and id with a separator
neither can contain, and that separator was first written as a LITERAL NUL BYTE
in the source instead of as the six-character escape sequence a JavaScript
string literal spells it with. Everything parsed and every
other assertion passed — but `git`, `grep`, `file(1)` and every diff viewer
classify a file containing a NUL as BINARY, so the module would have reached
review as an unreadable blob. A separator that cannot occur in a region or an id
is right; spelling it as a raw byte is not. The check reads BYTES, because
reading the file as text is exactly what hides it.
Lane: openxfactory-4-opendox-extraction
Refs opensoft/openXfactory#656
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
…at could inject a tab, an entry that could not be called Copilot's review of PR #14, all three accepted and each kept as a test. 1. A DECLARATION DEFECT MUST NOT DEPEND ON THE TYPE OF WHAT IT REFUSES. `REGIONS` is a dict, so `<unhashable> not in REGIONS` raised `TypeError` out of the hash BEFORE `ViewBinding.__post_init__` could raise the `ViewBindingError` this module promises for every declaration defect — a caller written to catch the one refusal class would have met an exception it never agreed to handle. The type is now checked before the membership, on `region` and on `view_class` both; the second cannot raise today (a tuple membership test does not hash) and is guarded anyway, because relying on `VIEW_CLASSES` staying a tuple is exactly the quiet dependency this work exists to end. 2. A CONTRIBUTED ENTRY MAY NOT CARRY THE CORE ARM'S OWN TWO FIELDS. `contributedViewBindings` passed manifest entries straight to `viewBinding`, which accepts and preserves `mount` and `control`. `control` is what makes a binding a TAB, and a contributed entry arrives as JSON and cannot carry the `mount` FUNCTION the tab router calls — so a manifest declaring a `control` would have put an entry in the tab strip whose `mount` is `undefined`: the tab renders, and the click that selects it throws. Refused where the payload is READ rather than ignored, because ignoring it is a crash with a delay on it, and `view_manifest()` emits neither field, so no honest payload is refused by this. Malformed REFUSES while absent is an empty column — the rule that already governs the rest of the manifest. 3. PRESENT IS NOT MOUNTABLE. `resolveView` checked only that the entry NAME existed on the module's namespace, so a module exporting it as a string, an object or a `null` handed back a binding that looked resolved and threw a raw `TypeError` from inside whatever tried to mount it — the "dangling import a thousand lines from the call" this seam exists to replace. The entry must now be a function, and the refusal distinguishes "not exported" from "exported as something that cannot be called", because those are different defects in the contributing column. Five new assertions, in the groups they belong to: an unhashable `region` (as a list and as a dict) and an unhashable `view_class` refuse as `ViewBindingError`; a contributed entry carrying `control` or `mount` refuses while the same entry without them is collected; and an entry exported as a non-function refuses at resolution. `tests/test_view_registry.py` is 55 assertions; `validate`'s four files are 127. Lane: openxfactory-4-opendox-extraction Refs opensoft/openXfactory#656 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
…uter's field names
`tests/test_bullseye_widget.py` asserts `app.js`'s shape by QUOTING ITS LINES
BACK, so the view registry's `view` -> `region` rename invalidates three of its
quotations the moment it lands. They are migrated in the SAME act that
invalidated them, which is the only time anyone can be sure the migration is a
rename and not a behaviour change:
:900 classList.toggle("lensfull", target.view === "view-lens")
:1781 storeTab(target.view);
:1785 const remembered = TABS.find((t) => t.view === storedTab());
`.view` -> `.region` in all three, and nothing else on any line. The assertions'
MEANING is unchanged: the lens still takes the whole page, the tab is still
remembered on every activation, and it is still restored only to a view this
plane actually has. The tab router simply calls the field `region` now, because
a binding's mount point is what that string always was.
THE SUITE IS RED TODAY FOR AN UNRELATED REASON — it imports through
`src/opendox/serve.py`, which still reaches `ideation_dashboard`, a module the
§ 3 carve removed — and it is not in `validate`'s narrowed list. Neither fact
makes a stale assertion acceptable: slice S8 re-homes these 48 test files and
un-narrows `validate`, and an assertion describing a shape that no longer exists
is precisely the rot that slice would then have to discover and date. Copilot
found two of the three on PR #14; a sweep of every assertion in the leg that
quotes `app.js` found the third, and found no others anywhere in the suite.
Q-L1: `tests/test_bullseye_widget.py` is an ARRIVED file, already
`moved_with_declared_edit` for its `path constants` line 40. The three lines are
declared as `adapter calls` on the same row by openxFactory PR #1001 — the same
act that declares `app.js`'s 37 — and each is a single-line REPLACE at the carve
numbering, so exactly three lines are declared and no neighbour is.
`verify-carve-arrival.py`'s `_check_declared_lines` over all 123 `opendox_code`
rows: both rows DECLARED, 60 verbatim rows byte-identical, 0 refusals.
Lane: openxfactory-4-opendox-extraction
Refs opensoft/openXfactory#656
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
S1 landed tests/test_web_boundary.py, tests/fixtures/web_boundary_census.yaml and an explicit-test-list addition to .github/workflows/validate.yml on main while this leg was in flight. The only textual conflict is validate.yml's pytest invocation; resolved as the UNION of both slices' comment blocks and both new test files (tests/test_web_boundary.py then tests/test_view_registry.py), in landing order S1 then S3. S1's census fixture and test module arrive unmodified from main in this commit; the semantic follow-up they need (a census row for S3's new file) is the next commit, not this one. Lane: openxfactory-4-opendox-extraction Refs opensoft/openXfactory#656 Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
S1's census could carry no row for views/view_extension.js because the note
measured the tree before S3's file existed; the merge alone left
test_every_web_file_is_classified_exactly_once failing. Classified A: no
import (so it cannot trip assertion 3), no governance literal (out of
assertion 4's class-C/tail scope regardless), and its one route-shaped
string -- 'gate.bar' in a doc comment -- is an id, not a /actions/... path,
so assertion 2's patterns do not match it. app.js's own row `loc` moves
1155 -> 1282 with the registry wiring; the header totals move with both
rows (43 files, 31,134 lines).
Assertions 2 and 3's xfail `reason=` strings are corrected to the counts
this tree actually measures post-merge, on the module's own stated
"fidelity over tidiness" convention rather than left to cite a shape that
no longer exists:
* assertion 3 (relative import / class boundary): 7 sites -> 6. S3 closes
app.js:43 -> views/gate.js, the shell's one direct class-B import and
exactly the edge slice S3 exists to close. The other 4 class-boundary
sites and the 2 unresolved intent-feed sites are untouched, so the
assertion stays red and the marker stays valid.
* assertion 2 (route ownership): 18 sites -> 20. S3's CORE_VIEWS
`gate.bar` entry declares `routes: ["/actions/gate/ratify"]` (RULED Q3:
a route constant travels with the binding that calls it) -- a real
breach by this assertion's own rule while that entry sits in app.js
(class A) rather than views/gate.js (class B, exempt by construction).
Transitional by the same design the CORE arm itself is: slice S5
deletes this entry from app.js when the binding moves behind a
host-supplied contribution. app.js's other two projection-route sites
shift line number (183/184 -> 195/196) with the file's growth; same two
`/source/` literals, untouched otherwise.
Neither assertion XPASSes -- both stay xfail(strict=True), which is the
thing this commit exists to keep true. Full leg validate invocation
(tests/test_leg_shape.py, tests/test_consumer_reach.py,
tests/test_profile_registration.py, tests/test_web_boundary.py,
tests/test_view_registry.py --noconftest): 129 passed, 3 xfailed, 0 failed.
Lane: openxfactory-4-opendox-extraction
Refs opensoft/openXfactory#656
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
view_extension.js
* manifestRoutes(): a PRESENT manifest whose contributed_routes is not an
array (or missing) now refuses instead of silently reading back [] --
view_manifest() always emits this field as an array, so anything else
there cannot be trusted for the ownership check it exists to carry.
Absence of the WHOLE manifest is still an empty column, unchanged.
* resolveView(): a rejected `await import(...)` (missing file, syntax
error) is now caught and refused as a ViewBindingError naming the
binding id and module path, instead of leaking a native error with
neither.
view_extension.py
* ViewBinding.entry is now held to the same ASCII identifier grammar
views/view_extension.js's viewBinding() checks (_ENTRY), not Python's
own str.isidentifier() -- the two disagreed in both directions
("$mount" valid JS, invalid Python identifier; "café" valid Python
identifier, invalid per the client's ASCII-only regex), so a binding
could be constructed on one side and refused on the other.
* collect_view_bindings() now checks views is callable and views() a
list/tuple before entering the loop. isinstance(extension,
ViewExtension) is a runtime_checkable Protocol check and verifies only
that the name exists; `views = 1` or `views()` returning None both
passed it and then raised a raw TypeError, never the ViewBindingError
every other declaration defect in this module promises.
Ten new tests (2 Python parametrized + 2 single + 2 JS, tests/test_view_-
registry.py), the census loc for views/view_extension.js corrected for its
growth (422 -> 455) with the header totals moving the same amount. Full
leg validate invocation: 139 passed, 3 xfailed, 0 failed -- the three S1
xfails unaffected (app.js untouched this round; both created files this
commit touches carry no manifest row, RULED OQ-C).
Lane: openxfactory-4-opendox-extraction
Refs opensoft/openXfactory#656
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…e scope The one remaining PR #14 thread (tests/test_view_registry.py:132): this repository ships no `package.json`, so `_run_node`'s harness and the real `view_extension.js`/`docs.js` (native `export`/`import`, no bundler) have no declared module format. Node decides ambiguous `.js` files via `--experimental-detect-module` (default ON since Node ~20.10, unflagged by Node 22+): it reparses a file as ESM the moment it sees module syntax, and warns `To eliminate this warning, add "type": "module" to .../package.json`. Verified by hand and does not reproduce today: neither locally (Node v22.22.2) nor in the actual `validate` run for this head (34702880356, Node 24 per the runner's own deprecation notice) does any node-based test fail -- both pass because the heuristic is on by default there. It is still a real gap, not a false positive: importing the unmodified `view_extension.js` with `--no-experimental-detect-module` (simulating an older Node, or the flag disabled) fails outright, proven both by hand and by the new regression test below (confirmed red on the pre-fix tree, green after). Fix: an explicit `package.json` (`"type": "module"`) at the repository root -- an ancestor of `src/opendox/web/**/*.js` for Node's module-scope lookup, but deliberately NOT inside `src/opendox/web/`, which `tests/fixtures/web_boundary_census.yaml` classifies file-by-file (verified `test_every_web_file_is_classified_exactly_once` still passes unchanged) -- plus one written into every `_temp_bundle()` copy, since `tmp_path` sits outside the repository tree and the root file is not its ancestor. New test `test_js_module_scope_holds_without_node_s_detection_heuristic` imports both the real registry and a `_temp_bundle` copy under `--no-experimental-detect-module` and asserts a clean import -- the positive assertion that the module format is now a stated fact rather than a Node default that a future version, downgrade or flag could change again. Verified: full `validate` invocation (5 files, --noconftest) 140 passed, 3 xfailed -- same xfail set as before (S1's three strict xfails, untouched by this change). Lane: openxfactory-4-opendox-extraction Refs opensoft/openXfactory#656 Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
S2 (#15, "the intent chips become an optional contributed binding") landed on main while this leg was in flight and flipped PR #14's mergeStateStatus to DIRTY/CONFLICTING. Two textual conflicts, both resolved as the UNION of both slices' content rather than by picking a side: - `.github/workflows/validate.yml`: both the comment block (S2's paragraph then S3's, plus a one-line note that S3's registry test now carries its own package.json fix) and the pytest file list (`test_intent_binding_shape.py` then `test_view_registry.py`) keep both slices' additions. - `tests/fixtures/web_boundary_census.yaml`: both slices' own "a 43rd file" paragraphs are kept verbatim (each counts its own addition against the shared a99eba0 base, independently, and neither claim was wrong on its own branch), plus a new RECONCILED paragraph giving the combined total now that both land in one tree -- A 22 files/12,398 lines, B 4/1,597, C 14/11,854, ? 4/5,432, total 44/31,281 -- verified against the merged file's own rows (`sum(row["loc"] ...)` by class), not hand-arithmetic left unchecked. `views/dispose.js` and `views/wheel.js` (S2's two other touched files) are unchanged in `loc` on both branches, so B/C totals carry over unmodified. All other files (src/opendox/cli.py, src/opendox/serve.py, src/opendox/web/views/dispose.js, src/opendox/web/views/wheel.js, the new views/intent-binding.js, tests/test_intent_binding_dom.py, tests/test_intent_binding_shape.py) arrive unmodified from main. Verified: full `validate` invocation (6 files, --noconftest) 148 passed, 3 xfailed -- the same three S1 strict xfails, same reasons, confirmed still XFAIL rather than flipped XPASS by S2's edits. Lane: openxfactory-4-opendox-extraction Refs opensoft/openXfactory#656 Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
… mount, view-registry isolation
tests/test_doc_surfaces.py
* test_the_doc_tab_is_wired_to_the_one_cross_view_jump located the docs
tab's block by the pre-S3 `{ tab: "tab-docs"` shape, which no longer
exists in app.js now that the binding is `{ id, control, region }`
(§ 3.4 S3). `app.split(...)[1]` on the absent literal raised IndexError
before the renderDocs assertion ever ran. Migrated to split on the
registry shape (`{ id: "docs.list", control: "tab-docs",
region: "view-docs",`) -- the same one-token-class migration the three
test_bullseye_widget.py `.view` -> `.region` quotations already took in
this PR (09b42f5).
src/opendox/web/app.js
* The viewer's `mountGate` adapter called a hard-coded
`gateView.exports.mountGateBar` instead of the RESOLVED binding's own
declared `entry` export. `resolveView()` already validates that
`binding.entry` names a callable export of `binding.module`; a
contributed `gate.bar` binding declaring a different entry name would
pass that validation and then either mount the wrong function or throw
on `undefined` here, because validation and mounting consulted two
different names. Now
`gateView.exports[gateView.binding.entry](host, gctx, { caps })` --
one token changed. New
test_app_js_mounts_the_gate_bar_through_its_declared_entry
(tests/test_view_registry.py, S3-created) pins the new expression and
asserts the old hard-coded call is absent, as a regression guard.
tests/test_view_registry.py
* Normal (non-`--noconftest`) pytest loads the root conftest.py, which
registers an empty `_SuiteProfile` at collection time -- a test process
is a host like any other. This module never cleared that ambient
registration before asserting against a clean slate:
`registered()`'s `domain_profile.register()` raised AlreadyRegistered
against the suite's own profile (reproduced in isolation running
test_the_facet_comes_off_the_one_registered_profile alone), and
test_no_host_at_all_refuses_rather_than_answering_empty's
`assert not domain_profile.is_registered()` saw it registered and
failed (also reproduced in isolation; the full-file run happened to
pass it only as a side effect of the PRECEDING test's fixture teardown
unregistering the conftest profile after its own registration attempt
raised). New autouse `_empty_registry`, mirroring
test_profile_registration.py's fixture of the same name: save whatever
profile is registered (or None), unregister, yield, restore in
teardown. Both tests now pass standalone and in any order.
Verified: narrowed validate (5 files, --noconftest) 82 passed, 3 xfailed,
unchanged. `node --check src/opendox/web/app.js` clean.
Normal invocation of both touched files still cannot reach any of these
three assertions: `ideation_dashboard` is genuinely absent from this leg by
design (pyproject.toml's own dependency note -- it is a cross-column reach
the BUILD arc removes), and the root conftest's autouse
`declared_human_console` fixture imports `opendox.cli` -> `opendox.serve`,
which imports it at module level. Every test in both files errors at
fixture setup on that ModuleNotFoundError before reaching either file's
body, unchanged by this commit (78 errors before and after -- the
pre-existing 77 plus one new test, same reason). Verified instead with a
scratch-only, uncommitted `ideation_dashboard` stub that satisfies the
import chain with no behavioural stand-in beyond existing, plus isolated
per-test and per-line checks against the real files; the PR thread replies
give the exact commands and tallies.
Also found, NOT fixed here (out of this round's scope and reported to the
orchestrator separately): tests/conftest.py's
`REPO_ROOT = HERE.parent.parent` is off by one directory now that the carve
flattened `tests/ideation-dashboard/` to `tests/` -- it resolves one level
above this repository's own root. That is a second, independent reason
most of test_doc_surfaces.py (and, by the same `REPO_ROOT` import, roughly
three dozen other test files) cannot reach a green normal invocation right
now; it masks nothing this commit fixes, and none of this commit's new or
changed assertions depend on it.
Lane: openxfactory-4-opendox-extraction
Refs opensoft/openXfactory#656
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
… the bindings that call them RULED Q3 (opensoft/openXfactory#656 comment 5642758731, Brett Heap, 2026-09-12): "a route constant travels with the binding that calls it, never with the model that happens to declare it." openDox-spec `docs/front-end-package-boundary.md` § 5's S4 row is the PRECONDITION for S5: only 3 of the 13 gate-route constants were declared in class-B files; the other 10 sat in `views/lens-model.js`, `views/repo-selector.js` and `views/staging-workbench-model.js`, and the gate loop cannot be contributed until its route table stops living outside class B. THE THIRTEEN TAILS, and where each went: views/lens-model.js "?" -> A (1070 -> 1075) LENS_SAVE_ROUTE :1036, LENS_CLUSTER_ROUTE :1037 -> views/gate-lens.js (NEW, class B) with the execute affordance, the organizer-evidence form and the outcome panel that call them. The model is pure and import-free again and names no route another column declares. views/repo-selector.js "?" -> A (889 -> 814) :33 /snapshot-index.json -> views/projection-index.js (NEW, class B), reached LATE by a dynamic import inside `fetchIndex` (§ 4.2's own guard, not a ViewBinding — an index fetch mounts no panel and occupies no region) :34 /actions/refresh stays class A: BOTH legs declare a handler :38 /project-register.json stays class A: openDox's own :39 create-project, :43 edit-project -> views/gate-projects.js (NEW, class B), ONE binding carrying the create form and the membership-edit commission :46 /actions/apply-register-edits -> LEFT THE BUNDLE ENTIRELY, with the "⟳ apply N pending" button that reached it. RULING DQ-1 keeps that lane at openxFactory and § 2.2 rule 1 says no class here can ever own it. Commissions still record and still badge as pending; what is gone from this bundle is the button that ran the fulfilment. views/staging-workbench-model.js "?" -> A (C tail) (1949 -> 1943) :543 CREATE_ROUTE -> views/swb-create.js; :817/:818/:821/:822/:826 with the SESSION_ROUTES table and sessionRoute() -> views/swb-session.js. No new file: both are class B already and were always the only callers. REACHED THROUGH THE S3 REGISTRY, NEVER AN IMPORT. `app.js` resolves `gate.lens` and `gate.projects` once per render exactly as it resolves `gate.bar`, and hands each view an already-bound mount or null. Null is what a student install is: the lens plan panel stays plan-only and the selector renders picker + refresh, with no 404 and no dead control. Two new "shell" regions (`lens-gate`, `repo-projects`) are declared in BOTH halves of the registry, in order, so the drift test holds them together. CENSUS AND ASSERTIONS (tests/fixtures/web_boundary_census.yaml, tests/test_web_boundary.py): * the three SPLIT rows are re-classified A with their real post-split line counts; three new class-B rows; `loc` refreshed on every file this slice touched; per-class `totals:` now declared and re-derived from the rows. * ASSERTION 1 gains its post-S4 cutoff (§ 4.5 point 1): any row still "?" or "SPLIT" fails, except what `declared_transitional_rows` names — views/lens.js alone, with the ruling gap and what would discharge it. * ASSERTION 2: all twelve SPLIT-file sites are CLEAN. views/lens.js's two openxFactory-lane sites become the standing DECLARED exception § 4.5's own last paragraph states ("they never entered it"), keyed by route and never by line. Measured residue 10, re-derived and written into the marker: 6 gate-prefix sites, every one of them a class-B binding's `routes:` declaration in app.js's CORE arm (:589/:601 S3's gate.bar, :624/:625/:630 S4's two), all transitional and closing together at S5 when those entries leave for contributedViewBindings(); plus the 4 /source/ sites RULED Q4 re-homes at S6. * the three xfail markers gain `raises=AssertionError` (S1 register nit 1) — a strict xfail with no `raises` tolerates any exception, so a malformed fixture would have read as the expected failure. Assertion 3's stale count (6, measured on the S3 branch before the S2 merge) is re-measured to 4; S4 adds none. The other two S1 nits — the exemption test checking text presence rather than a declaration, and the row-level `exempt:` not being cross-checked — are assertion 4's own and are left to S7. Two dead parameters did not travel with the code they were passed to: `mountCreateProject`'s `projects` and `commissionEdit`'s `control` were never read by either body. Refs opensoft/openXfactory#656 Lane: openxfactory-4-opendox-extraction Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…te's list
`tests/test_web_boundary.py` alone cannot tell this slice apart from a slice
that DELETED the thirteen route constants: its census assertion measures that
no file outside class B names another column's route, which is equally true of
a bundle whose gate verbs no longer work. `tests/test_split_route_tails.py` is
the other half, in the same `--noconftest` shape as its five neighbours:
* every one of the eleven moved constants declared in the class-B file that
CALLS it, and the literal gone — not copied — from the file it left, with
no surviving `export const` that a re-export shim could hide behind;
* `/actions/refresh` measured to have STAYED class A (§ 3.3 puts it under
openDox; a slice that swept every route out of the selector would pass
every other assertion here);
* `/actions/apply-register-edits` measured absent from EVERY file of the
bundle, with the apply button's own class, because "leaves the bundle
entirely" is a statement about all of it;
* app.js's `gate.lens` / `gate.projects` entries and the modules they name
declaring the SAME routes — the declaration is necessarily written twice,
since app.js is class A and may not import a class-B module to read them,
and this is what keeps the two copies honest through S5's move into
contributedViewBindings();
* the ten moved gate routes present as a SET in some class-B module, beside
the three that were already there — which is § 5's S4 precondition for S5
stated as an assertion;
* no class-A/C file reaching the three new modules through a static import,
measured on the three files this slice rewired (assertion 3 is xfail today
and could not have reported a new breach);
* and under node, against the REAL bundle files by absolute path rather than
a copy: the lens gate posting the route its plan kind names (with the
organizer evidence collected first for add-as-cluster), rendering the
engine's refusal verbatim and re-arming; the project commissions posting
both gate routes and carrying the project id, retiring the create form on
a landed commission and restoring the control on a refused edit; the
snapshot-index read degrading to null for a 404, a thrown fetch and never
throwing; and the selector's own `fetchIndex` still reaching the route it
no longer names, through the late import(), resolved once.
Named on `validate`'s explicit list in the SAME commit, on slice S1's own
precedent — a test file this leg does not name is a test file it does not run.
Refs opensoft/openXfactory#656
Lane: openxfactory-4-opendox-extraction
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…to build/s4-split-route-tails Lane: openxfactory-4-opendox-extraction Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…ready does S3's Copilot re-review (#14, `e176947`) replaced `gateView.exports.mountGateBar(...)` with `gateView.exports[gateView.binding.entry](...)`: a contributed binding NAMES its entry in the manifest, and reading a hardcoded export name here would silently ignore the name it declared — the binding would resolve, the mount would be `undefined`, and the panel would fail at the click rather than at assembly. The same is true of S4's two mounts, so they read the declared entry too. Census `loc` for app.js refreshed with the change (1331 -> 1337) and the declared totals re-derived. Refs opensoft/openXfactory#656 Lane: openxfactory-4-opendox-extraction Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…ry instead of coercing it Copilot found this on openDox-code #16, a thread on `view_extension.js:358` left for its owner (S3's view registry, `views/view_extension.js`): `contributedViewBindings`'s caller, `manifestRoutes()`, validated only that `contributed_routes` was an array, and `ownershipBreach()` read a contributed entry's `is_prefix` with a truthy check (`claimed.is_prefix && route.startsWith(pattern)`). Neither refused an ENTRY that was individually malformed — missing a string `pattern`, or carrying `is_prefix` as something other than a real boolean (including simply absent) — so a manifest like that rode through as if it were valid, and a truthy-but-wrong-type `is_prefix` (or a missing one, which is falsy) was silently read as "not a prefix" rather than refused. `view_extension.py`'s own note on "MALFORMED... REFUSES" is the rule this breaks: a payload this seam cannot reason about must fail closed, the same way `viewBinding()` already does for every OTHER shape defect in a contributed entry. THE FIX, both halves in `view_extension.js` alone: * a new `requireRouteShape(claimed)` — one shape check for a single contributed-route entry, shared by both callers so a malformed entry refuses at whichever of the two sees it first. * `manifestRoutes()` now runs it over every entry once the array check passes, instead of only checking the array's own type. * `ownershipBreach()` now calls it too, so `is_prefix` refuses when it is not a strict boolean, rather than falling through the old truthy check. PYTHON MIRROR PARITY. `view_extension.py`'s `_route_ownership_breach` reads `is_prefix` as `bool(getattr(contributed, "is_prefix", False))` — a coercion, not a refusal — but that is safe ONLY because its `contributed_routes` arrive as already-constructed `RouteBinding` objects, and `RouteBinding.__post_init__` (`route_extension.py`) has already refused a non-bool `is_prefix` at construction, before `_route_ownership_breach` ever runs. The JS mirror has no such upstream gate: its `contributed_routes` arrive as raw JSON off `/capabilities`, so this fix is deliberately stricter than the literal Python line it mirrors, matching what construction-time validation already guarantees on the Python side. TESTS (`tests/test_view_registry.py`), node-driven against the real file per its own `_run_node` pattern: extended `test_js_manifest_routes_refuses_a_malformed_contributed_routes_field` with an entry missing `pattern` and an entry with a non-boolean `is_prefix`, both inside an otherwise well-formed array; added `test_js_ownership_check_refuses_a_non_boolean_is_prefix_rather_than_coercing_it` covering a missing `is_prefix`, a non-boolean truthy one, and — so the fix does not over-refuse — a well-formed `true` (still breaches) and `false` (still resolves). Confirmed both fail against the pre-fix code and pass against the fix. `tests/fixtures/web_boundary_census.yaml`: `views/view_extension.js` grew 463 -> 499 lines; `loc` and the class-A `totals:` are re-derived and updated to match (`test_web_boundary.py`'s own drift check), with a note recording what changed and why. `app.js` is untouched — nothing here needed it. Refs opensoft/openXfactory#656 Lane: openxfactory-4-opendox-extraction Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…tails Resolves conflicts limited to S4's own additions layered on S3's landed content: validate.yml's S4 pytest entry, view_extension.py/.js REGIONS (lens-gate, repo-projects), app.js's two new gate mounts, and the census/ xfail narratives. Also collapses a duplicate views/view_extension.js census row (S3's pre-merge 455-loc row vs S4's reconciled 463-loc row) introduced by the add/add conflict on that file, updating its note to chain the S3->S4 loc growth; totals now re-derive exactly (A 25/16293, B 7/2174, C 14/11854, ? 1/1435 = 47 files/31756 loc). tests/conftest.py's REPO_ROOT depth fix (#19) arrives from main unchanged. Lane: openxfactory-4-opendox-extraction Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…al (Copilot) Copilot review round on PR #17: assertion 2's declared exception list (route_ownership_exceptions) was consumed by _excepted_routes without any check that an entry names a real census row, carries a reason/until, or that its routes are still actually present in the file -- unlike declared_transitional_rows, which already has test_the_declared_transitional_rows_are_real_and_still_transitional. The fixture's own comment above route_ownership_exceptions already claimed "each route is checked to be really present in the file it exempts"; this was aspirational until now. Adds test_the_route_ownership_exceptions_are_real_and_still_present, on the same pattern as its assertion-1 sibling. Verified it catches a stale route (mutation test: renamed a declared route to a nonexistent literal, confirmed the new assertion fails, restored the fixture byte-identical). Narrowed validate: 181 passed, 3 xfailed (was 180/3). Lane: openxfactory-4-opendox-extraction Refs opensoft/openXfactory#656 Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…egistry-fail-closed Reconciles the one conflict, in tests/fixtures/web_boundary_census.yaml's views/view_extension.js row: #17's branch had just gained the missing "455 -> 463 on S4" narrative sentence (a duplicate-row cleanup fix) while this branch had already appended its own "463 -> 499 on this fix (Copilot, PR #16)" continuation from the pre-cleanup 463 note. Spliced both narrative additions into one chained note (422->455->463->499) and kept loc: 499, which matches the file's actual line count. Re-verified: totals re-derive exactly (A 25/16329, B 7/2174, C 14/11854, ?/1435). Lane: openxfactory-4-opendox-extraction Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
… the registry The openDox half of slice S5 (openDox-spec `docs/front-end-package-boundary.md` § 5 row S5 @ `7d12428c`). The contract is openXdox-spec `docs/gate-loop-view-contract.md` @ `d73767b7`, § 8 Q1-Q12 RULED by Brett Heap 2026-09-12 at opensoft/openXfactory#656 comments `5648044785`, `5648049748`, `5648065587`. Paired with openXdox-code#18, which supplies what this removes. WHAT LEFT: `views/gate.js`, `views/dispose.js`, `views/swb-create.js`, `views/swb-session.js`, `views/gate-lens.js`, `views/gate-projects.js` — six and not four, because S4 split four of the thirteen gate constants into two NEW class-B modules and `gate-lens.js`'s own header says "AT S5 THIS FILE LEAVES THE BUNDLE". With them go the three CORE-arm bindings and every gate route literal in the shell. WHAT EACH RULING PUT WHERE * Q1 `views/view_extension.js` `mountContributedViews()` — one mount pass over every contributed binding whose region is a `dom` region; `shell` regions stay caller-driven, which is why this column's own six are untouched by it. * Q2 `exports` on `ViewBinding` in BOTH halves, validated the way `entry` is, and `resolveView` now hands back a namespace BOUNDED by the declaration — a reach for an undeclared name refuses, naming both. * Q3 every contributed mount is `mount(host, snapshot, ctx)`; app.js's three adapters and staging-workbench.js's four call sites carry the new shape. * Q4 `unmetRequirement` / `requirementRefusal` / `probeCapabilityPath` — dotted paths into `/capabilities`, evaluated at every named resolve and in the mount pass; unmet + optional is an empty region with a NAMED reason, unmet + required refuses. * Q8 `page-overlay`, a shell region app.js builds (index.html is a `moved_verbatim` carve row and cannot grow an element), plus `workbench-create` / `workbench-session` for the workbench's two caller-built hosts — added with the bindings that mount into them, on slice S4's own precedent. * Q10 app.js:57's `firstEditTransport` import is GONE: reached off the `gate.workbench.session` binding, with `refusalTransport()` — a refusal in the shape `runSave` understands — when no column is registered. * Q11 `render()` catches `ViewBindingError` separately; a registry refusal is no longer framed as a snapshot defect. * Q12 no gate route literal survives anywhere in this bundle. ASSERTION 3 IS GREEN AND ITS MARKER IS OFF: 7 at S1 -> 6 at S3 -> 4 at S2 -> 0 here. All four were the gate loop's own, and each closed by the module LEAVING — `views/wheel.js` and `views/staging-workbench.js` read the declared namespaces the shell resolved, through null columns that make every affordance unoffered where openXdox is not registered. ASSERTION 2 is 10 -> 4: the six CORE-arm gate sites cleared, the four `/source/` sites are slice S6's on its own branch, so that marker stays. Lane: openxfactory-4-opendox-extraction Refs opensoft/openXfactory#656 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
TWO THINGS. THE ONE LINE SLICE S3 BUILT BOTH ENDS OF AND DID NOT WRITE. `serve.build_server()` now sets `capabilities["views"] = view_extension.view_manifest(...)`, collected from the host's `VIEW_EXTENSIONS` facet against the routes THIS assembly contributed. `opendox/view_extension.py` named this line and the slice that owes it: "S5, the slice at which a contribution first EXISTS to deliver, joins them." No new route and no second fetch — it rides on the payload `views/notebook.js`'s `probeCapabilities()` already fetches once at load, which is how a static image reads an empty consumer column and comes up. `tests/test_gate_loop_contributed.py`, on `validate`'s explicit list in the same commit. Its centre is the slice's own success test — `test_a_student_install_comes_up_with_no_gate_loop_and_no_404` — made of four separately-measured facts rather than one: none of the six modules is in the bundle or the census, nothing imports one (so the module graph resolves without them, which is § 1.2(b)'s blank-page failure mode closed), no gate route literal survives anywhere for anything to request, and each affordance is UNOFFERED rather than undefined because the two class-C files read null columns whose capability predicates answer false. Node-driven against the real `views/view_extension.js`: the declared namespace refusing an undeclared reach (Q2), a declared export the module lacks refusing at resolve, `requires` unmet answering null for an optional binding and refusing for a required one with the path and the probed value named (Q4), and the generic mount pass mounting a `dom`-region binding with `mount(host, snapshot, ctx)`, leaving a `shell` region alone, and writing a NAMED reason into the region of an unmet optional (Q1). ONE LANGUAGE CONSTRAINT RECORDED RATHER THAN WORKED AROUND: a module namespace's exports are non-configurable, so the Proxy invariants forbid `has` / `ownKeys` / `getOwnPropertyDescriptor` from hiding one — a `has` trap answering false throws `TypeError` and would break the caller instead of refusing it. The declared namespace therefore refuses on the REACH, through `get` alone, which is exactly what RULED Q2 calls the defect. Lane: openxfactory-4-opendox-extraction Refs opensoft/openXfactory#656 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
…y to copy into MEASURED, not suspected: `setuptools` puts `*.py` into a wheel and nothing else unless a package declares otherwise, and this `pyproject.toml` declared nothing — so `pip install opendox` produced a package with no `opendox/web/` at all. An INSTALLED openDox could not serve the dashboard; only a source checkout could, and nothing noticed because every consumer to date has been an editable install. Same class of defect as RULED Q-L8 (a)'s `py-modules` gap, one directory over. SLICE S5 IS THE SLICE THAT HAS TO CLOSE IT. RULED Q5 (openxFactory#656 comment 5648044785) makes the composed deployment assemble the bundle — openXdox ships its six view modules as package data and the install copies them into openDox's one `--web-dir`. A wheel with no `web/` gives that copy nowhere to land, which would force every composed install onto the hosted GET fallback by a packaging omission rather than a deployment choice. `pyproject.toml` is a CREATED file (RULED OQ-C): no carve-manifest row. Lane: openxfactory-4-opendox-extraction Refs opensoft/openXfactory#656 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
…tails # Conflicts: # .github/workflows/validate.yml # tests/test_web_boundary.py
… fix/view-registry-fail-closed
… column may no longer import RULED counterpart Q6 (opensoft/openXfactory#656 comment `5649094228`, Brett Heap, 2026-09-12, by interactive multi-choice): "what a CONTRIBUTED view module may IMPORT from openDox's bundle: `./views/helpers.js` and NOTHING ELSE. Every other need reaches the binding through its `ctx` (Q1-Q4) or its own package (Q5)." The same comment CORRECTS `5648065587`: the sitting's first batch put the BOUNDARY note's Q6 to Brett Heap, not the COUNTERPART note's, so this question was still open while both legs of S5 were authored. openXdox's half closes the reach (openXdox-code#18). THIS half has the other obligation: every name the four modules used to import statically has to arrive on the ctx this shell composes, or the rule turns a working affordance into a refusal. * `views/gate-lens.js` took `{ clusterRequest, recipeRequest }` from `views/lens-model.js`. `app.js`'s `mountLensGate` adapter — where the binding's context is already composed — now spreads `lctx` and adds `model: lensModel`. `views/lens.js`, which builds `lctx`, is untouched and knows nothing about the contributed column's needs. * `views/swb-create.js` and `views/swb-session.js` took five and nine names from `views/staging-workbench-model.js`. `views/staging-workbench.js` imports the NAMESPACE and hands it down at the create column's shared options builder, at the session mount and at the doxBench create dialog; `app.js` hands it to `firstEditTransport`, RULED Q10's non-mount export, whose ctx is the options object it already takes. * `views/dispose.js` took `{ emitIntent, renderIntentChips }` from `views/intent-binding.js` and fell back to `emitIntent` when the hosted context carried no emitter. A fallback into a module a contributed binding may not import is a refusal, not a default: `views/wheel.js`, which starts the feed and builds that context, now supplies `emit` and `renderChips` with it. THE NAMESPACE AND NOT A PICKED SET. The binding declares which names it needs (openXdox's `CTX_MODEL_REACH`) and refuses BY NAME at the mount when one is missing; re-listing them here would put a second, staler copy of that contract in the file that supplies it. Four tests, one per supply site plus a guard that no shell file imports one of the six contributed modules back — § 4.5 assertion 3's breach reopened from the other side would be the obvious way to "fix" a missing facet. Census `loc` rows and the class totals re-measured for the three edited files. Lane: openxfactory-4-opendox-extraction Refs opensoft/openXfactory#656 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
`docs/front-end-package-boundary.md` § 4.3 names five steps and this commit is the first three of them: the host's DISPLAY facet, published on the payload the shell already fetches, read by ROLE and handed to every view through `ctx`. * `src/opendox/display_profile.py` (created; no manifest row, RULED OQ-C) — the facet's server half. `PROFILE_FACET = "DISPLAY"` beside `ROUTE_EXTENSIONS`, `SUBCOMMAND_EXTENSIONS` and `VIEW_EXTENSIONS`: one composite profile, one registration, four facets, all through the same lazy proxy. `STAGE_ROLES`, `STATUS_ROLES`, `AREA_ROLES`, `TOKEN_ROLES` are the declared vocabulary, and every one of them is a ROLE — a position in the pipeline — because openXdox-spec `docs/domain-profile-design-note.md` § 6 rules that a profile whose organized status is spelled `triaged` must work with no engine change. A partial declaration is legal and filled per field from the neutral words; an unknown role, a blank word or a token that is not `#rrggbb` is a `DisplayFacetError` where the server is built. * `serve.py` — `capabilities["display"]`, beside S5's `capabilities["views"]` and for § 4.3 step 2's own stated reason: "no new route and no second fetch". * `src/opendox/web/views/display.js` (created) — the client half. `readDisplay`, `Display.label/one/many/short/gate/status/area/token/items`, all by role, and `applyTokens` for the four `--st-*` custom properties § 4.3 point 4 sets on `:root` at boot. An unknown role is a `DisplayRoleError` naming the declared set, never `undefined`. * `app.js` — reads the facet once per render, sets the four tokens on `:root` before anything mounts, and adds ONE key to the context object every view and every contributed binding already receives. * `view_extension.py` / `view_extension.js` — `CTX_KEYS`, the context object's declared shape, mirrored in both halves as REGIONS already is. The counterpart note asks what a binding may assume about "the context object's shape"; a shape that is only ever an object literal in `app.js` is an assumption. ABSENT IS NEUTRAL, AND THAT IS A DEPARTURE FROM § 4.3 POINT 5 STATED IN FULL. The note says "refusal, not a default", and its argument is that "a fallback to TODAY'S WORDS is how the literals survive the refactor invisibly". `NEUTRAL_DISPLAY` is the opposite of today's words: it is openDox's own plain vocabulary — `sources → groups → candidates → selections → submissions → completions` — so a shell with no host facet is VISIBLY un-domained rather than invisibly re-domained, which is RULING OQ-2's student install and § 2.1's own test for class C performed by the product instead of asserted about it. The absence is NAMED on the payload (`host_facet: "absent"` with the profile), on `host_view_extensions`' own precedent; a facet that IS declared and malformed still fails closed. SNAPSHOT_FIELDS is § 2.2 rule 3's other half, declared once in a class-A module and carried in the census as a declared exemption with its reason: the snapshot's own field names and the closed `changes[].status` enum are openDox's SCHEMA, not a domain's mapping, so the fourteen class-C files can read the snapshot through a role and carry none of them. Lane: openxfactory-4-opendox-extraction Refs opensoft/openXfactory#656 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
The note left where slice S4's five node probes stood points at openXdox-code `tests/test_gate_loop_views.py`; they landed in `tests/test_gate_loop_probes.py` (openXdox-code#18 `b0091963`), where each probe assembles a COMPOSED bundle — openDox's own `web/` with that column's six modules placed into it by RULED Q5's assembly hook — and imports the module from there, which is a stronger statement than the original this leg could make. A pointer that names the wrong file is a pointer that gets followed once and then distrusted. Lane: openxfactory-4-opendox-extraction Refs opensoft/openXfactory#656 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
…, funnel.js
§ 5's S7 row orders the slice: "wheel-model.js and model.js FIRST (they are the
vocabulary the others import)". These two declared the six stage names twice over
— `COLUMN_KEYS` :15 and `WHEEL_KEYS` :25 / `WHEEL_LABELS` :27-34 — and every
other class-C file keys off one of them, so nothing downstream can be
parameterized while they are literals.
* `views/model.js` — `COLUMN_KEYS` IS `STAGE_ROLES` now. A node's `column`, its
DOM id prefix, every edge endpoint and the collapse set are neutral roles; the
column LABEL and the gate caption come from `display.stages()`; the snapshot
is read through `display.items(snapshot, role)`, which resolves the field name
and (for the two change stations) the closed status value out of the facet's
schema half. § 3.2 called this "the densest file in the tree — 28 governance
literals in 126 lines"; it carries none.
* `views/wheel-model.js` — the same six roles for the six reels. `WHEEL_LABELS`
is GONE rather than moved: a second copy of the vocabulary keyed by wheel is
exactly the literal table this slice removes, so `wheel.js` reads
`display.short(role)`. `WHEEL_ACTIONS` is keyed by role, and a verb row whose
label carries a domain noun declares that label as a function of the facet,
resolved per render in `actionsFor`. `packetGroups` reads its ordered front
matter from the artifact axis.
* `views/funnel.js` — the card builders, the legend, the variant toggle, the
station labels, the scope control and the count are all read by role. The
per-render vocabulary is held in one module-scope binding rather than threaded
through ten DOM helpers; `renderFunnel` is this module's one entry point and
every helper is called synchronously from inside it.
* `app.js` — each CORE_VIEWS mount hands `ctx.display` to its view.
THREE SEAM-KEY TABLES ARE DECLARED IN `views/display.js`, all on § 2.2 rule 3's
footing and all carried in the census as declared exemptions with their reason:
`SNAPSHOT_FIELDS` (the snapshot's own field names and the closed
`changes[].status` enum), `ACT_IDS` (the gate column's verb keys, which both
sides of the seam must spell identically — openXdox-spec's
`gate-action-record.schema.yaml`:165 is where the enum lives) and `TILE_KINDS`
(`/actions/notebook`'s payload keys, openDox's own `notebook_action.py`). None
of the three is ever rendered; what a human reads is always `display.<role>`.
AND THE EIGHT STATUS ROLES ARE NAMED CONSTANTS (`STATUS_ROLE`), because three of
them — `ratified`, `superseded`, `retired` — are spelled identically to the
openxFactory words they name the role OF. That is the lifecycle-state column's
own coincidence (openXdox-spec `docs/domain-profile-design-note.md` § 6), and
naming the role through a constant means the sweep never has to decide whether a
given `"ratified"` was the neutral role or the domain's word. The question does
not arise, which is a better answer than an exemption.
The facet gains the ARTIFACT axis RULED Q1's own argument names ("the profile
already has to carry an artifact-vocabulary axis for `outline-model.js`") and
§ 2.1 calls `views/explorer.js`'s only domain content: `root`, `packet` (with
its ordered front matter), `delta`, `supporting`.
Lane: openxfactory-4-opendox-extraction
Refs opensoft/openXfactory#656
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
* `views/wheel.js` — every per-wheel map is keyed by STAGE ROLE (the verb
mounters, the workbench scope kinds, the notebook tile kinds, the read-path
branch, the session-act table), every chip label is `display.short(role)`, and
the two flyout tooltips are declared as functions of the facet because they
carry domain nouns. `WHEEL_LABELS` is gone with its declaration.
* `views/board.js` — § 4.3 point 4 names this file directly ("board.js's four
columns become the profile's board roles"), and § 3.2 measured "25 governance
literals" in it. The four columns are now `source` (its CAPTURED documents),
`selection`, `submission`, `completion`; every heading, colour token, empty
note and filter option is read by role; the drill-in and notebook kinds come
from the declared seam tables.
AND THE BOARD STOPS REACHING FOR ANOTHER VIEW'S TAB BUTTON. Its "open the doc
list" footer clicked `document.getElementById("tab-docs")` — a view reaching
into another view's control by DOM id, which is exactly the coupling `app.js`'s
`nav` exists to hold. The view declares the verb (`onOpenDocList`), the shell
performs it (`nav.openDocList`), and the button is DISABLED rather than a live
no-op where no shell supplied one, which is the posture every other nav verb
in this bundle already takes.
THE SNAPSHOT'S CLOSED ENUMS ARE SCHEMA, AND THE FACET CARRIES THEM. A board that
filtered on the facet's neutral word would show an empty first column against
the very snapshot it was built to render: `build_server()` refuses without a
registered profile, but every profile in the estate today registers WITHOUT a
`DISPLAY` facet. So `documents[].stage` and `possibles[].state` are declared as
openDox's own schema (`SNAPSHOT_VALUES`, both halves) and published on the
payload's `values` block, where a host may override them per role. They are
values the renderer MATCHES, never values it RENDERS — every word a human reads
still comes from `display.status(vocabulary, role)` — which is § 2.2 rule 3's own
distinction read over a closed enum rather than over a field name.
`.possible` BECOMES `.tile-candidate` IN `styles.css` (12 selectors, 2 writers).
A bare governance word makes a poor style hook: it is ambiguous between a class
name and a value, and a sweep that exempted it would also exempt
`state === "superseded"` and `openButton("staged", …)`, which are neither. A
COMPOUND hook (`stage-staged`, `only-docs`, `tile-candidate`) is unambiguously a
class name, and that is the rule assertion 4's rewrite will hold. RULED Q7
(openxFactory#656 comment `5648049748`) is what makes the rename cheap: "the
`--st-*` family is the one stable styling surface; nothing else in `styles.css`
is."
Two more declared seam tables in `views/display.js`, each with its reason in the
census: `DRILL_KINDS` (the explorer's tile kinds) and `SCOPE_KINDS` (the staging
workbench's, whose closed set `views/doxbench-state.js` already declares).
Lane: openxfactory-4-opendox-extraction
Refs opensoft/openXfactory#656
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
…pure models The three declared class-A TAILS of § 2.2 rule 3 are discharged here, and with them the last of the pure view-models. * `views/docs.js` — RULED Q1's own sentence, realized: "openDox, class A, with the area map parameterized". `AREA_ORDER` :18 hardcoded `ideation/brainstorm` and `ideation/staging` — openxFactory's corpus layout, in the one tile § 3.4 says must reach the student. The bucket order and the prefixes come off the profile's `areas` axis now, terminal `reference` bucket last; a product told no corpus layout lists every document in that bucket rather than inventing folders it has never been given. * `views/grouping.js` — `TALLY_FIELDS` was a table pairing each schema key with a rendered label, which is exactly the pairing the facet already declares: the snapshot field on its schema half, the short word on its vocabulary half. One tally per stage role, in spine order. * `views/repo-selector-model.js` — `STATIONS` likewise, and DEDUPLICATED BY SNAPSHOT FIELD: the two change stations read one collection, so a repository carrying no changes at all now reports ONE empty station instead of two saying the same thing. * `views/lineage.js` — every tile heading, subline, lineage-row label and legend sentence by role; `possibles[].state` matched through `registerState(role)`. The three lineage chips get compound style hooks (`lchip-selection` and its two siblings) for the reason a bare governance word makes a poor hook. * `views/doc-wheel.js`, `views/canvas-model.js`, `views/outline-model.js` — the three remaining pure models. `canvas-model.js`'s gap kind becomes `unsupported-candidate`, its two draft file-name prefixes move to a declared seam table (`DRAFT_PATHS` — `src/opendox/canvas_drafts.py` builds the same names on the server, so the two must spell them identically), and `supersedeReason` is PARAMETERIZED ON BOTH SIDES: the browser reads the grouping station's word from `ctx.display`, `canvas_drafts.supersede_reason()` reads it from `display_profile`, and the cross-check in `test_canvas.py` holds under any vocabulary instead of locking one domain's spelling into two files. * `views/outline-model.js` — the staging template's canonical heading order joins § 2.2 rule 3's schema family (`SECTION_ORDER`, both halves, host-overridable on the facet's `sections` block): the needles are MATCHED against headings a human already wrote, never rendered, and openDox ships the order it has always shipped so no install loses its outline ordering to a facet nobody has declared yet. `proposal-element` becomes `marked-element`. `views/helpers.js`'S SCOPE NOTE IS AMENDED, not quietly broken. It recorded that five view-model modules "are each copied ALONE into a node test harness … so they cannot import a sibling". Four of the five are class C or carry a declared class-C tail, and a class-C module's vocabulary comes from the registered profile — so it has to reach the facet, and a module that imports NOTHING cannot. They now import EXACTLY ONE sibling, `./display.js`, which is itself import-free: a two-file harness rather than a one-file one. The harnesses are at openXdox-code, their suites are narrowed off (RULED Q-L8 (b')), and slice S8 is the slice that re-homes them. Lane: openxfactory-4-opendox-extraction Refs opensoft/openXfactory#656 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
`origin/build/s7-parameterize-class-c` advanced by one commit, and it is the one this branch was waiting for: "four arrived suites nobody had run since the carve". Slice S8 un-narrowed this leg's `validate` for the web suites, ran them file by file, and handed four failures back to the slices that caused them (`opensoft/openXfactory#656` comment 5650335573 § 4). S7 has now repaired all four AS DECLARED EDITS on arrived test files, with no product file changed: tests/test_doc_surfaces.py 3 failed -> 11 passed tests/test_doxbench_tile_verbs.py 1 failed -> 22 passed tests/test_doxbench_view.py 124 passed/11 errors/1 failed -> 136 passed tests/test_bullseye_widget.py 4 failed -> 52 passed Clean merge, four files, no conflict. Slice S8's own repairs to two of those files survive it unchanged and were checked by hand rather than assumed: `tests/test_doxbench_view.py`'s `PREVIEW_CASES_PATH` still reads `tests/ fixtures/` and not the pre-carve `tests/ideation-dashboard/fixtures/`, and `tests/test_bullseye_widget.py` still reads `src/opendox/serve.py` and not `scripts/ideation_dashboard/serve.py`. NONE OF THE FOUR IS IN THIS PR'S `validate` LIST and none joins it here. They are S7's rows to declare on the S7 annotation, which lands before #21; naming them here would make this leg's required check answer for another slice's declarations. What this merge buys is that the seventeen suites this PR DOES name are re-proved against the base that will actually be underneath them. Refs opensoft/openXfactory#656 Lane: openxfactory-4-opendox-extraction Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…ng mounts nothing Copilot's round-4 finding on `src/opendox/web/app.js`, and it is the same defect round 3 fixed one layer in. The six contributed resolves — `gate.bar`, `gate.lens`, `gate.projects`, `gate.dispose`, `gate.workbench.create`, `gate.workbench.session` — each await a dynamic import, and EVERYTHING after them mounts: the declared namespaces are handed down, `ensurePageOverlayHost()` builds RULED Q8's host, the dispose panel is mounted into it, and every region's core render follows. A repository switch during one of those imports aborts this render's scope, but the old render still resumes after the awaits and mounts its stale snapshot into the page the newer render owns. `mountContributedViews`'s own signal check (round 3) guards the generic pass and cannot undo a shell mount that already happened. The render that lost its scope now stops between the last resolve and the first mount. Its ERROR path stops with it: `reportAssemblyFailure` is a closure of ONE render and the per-region pass hands it rejections that can arrive minutes later, so a refusal from a render the user has already switched away from would have been written over the live render's own surface, describing a column probed for a repository no longer on screen. `tests/test_gate_loop_contributed.py` gains `test_a_render_that_lost_its_scope_while_resolving_mounts_nothing`, which pins the guard's POSITION rather than its presence: after the last of the six resolves, and before the namespace hand-down, the page-overlay host and `mountExplorer` — the three orderings the finding turns on. The boundary census's `app.js` row moves 1584 -> 1602 loc (class-A total 16918 -> 16936) with the reason in its note, as every previous round of this PR recorded its own. Destination gate re-run from openxFactory main @ee251d6c (the landed S5 annotation, #1023): `verify-carve-arrival.py --destination opendox_code --phase B` answers OK — 119 rows arrived, 66 declared-edit rows within their lines, 4 re-destined away and verified vacated. The guard falls INSIDE `web/app.js`'s already-declared edit lines, so no annotation amendment is owed. Lane: openxfactory-4-opendox-extraction Refs opensoft/openXfactory#656 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
There was a problem hiding this comment.
🔵 Needs a closer look
One or more issues must be addressed before approval.
Review details
Suppressed comments (10)
Previously missed (3) — in code that hasn't changed since the last review.
src/opendox/web/views/docs.js:29
- The new area parameterization uses the rendered label as the internal bucket key (
areaOrder()andareaOf()both returna.label). The facet validator permits two area roles to share a label, so such a profile makesbyAreamerge distinct roles and then renders that merged group once per duplicate label; filtering also cannot distinguish them. Keep the role as the key and resolve its label only when rendering the heading/control.
src/opendox/web/views/explorer.js:78 - The new artifact vocabulary is also used as a label-keyed grouping map:
classifyChangeFile()returnsdelta.label/supporting.label, andchangeGroupOrder()returns those labels. The facet validator allows duplicate artifact labels, so two roles with the same label are merged into onebyLabelbucket and then emitted twice by the duplicate order entries, duplicating the files in the explorer. Keep role identifiers as internal keys and translate to labels only for the rendered group heading.
src/opendox/web/views/outline-model.js:323 - This new optional
displayinput is what makes section insertion use the host's declaredsectionsorder, but the productionrunAddSectioncall instaging-workbench.jsomits it. A human adding a section through the workbench therefore still gets the neutral template order; only the direct model probe exercises the custom order. Pass the workbench's installed display at that call site.
src/opendox/display_profile.py:586
- The browser matches a heading by lowercasing
titlebefore callingincludes(needle), but this validator accepts and forwards mixed-case (or surrounding-whitespace) needles unchanged. A declaration such as"Open Questions"is accepted yet never matches"Open questions", so the configured order silently falls back to append behavior; normalize the needles here or reject non-lowercase values.
return [_text(needle, where="sections") for needle in order]
src/opendox/web/views/doc-wheel.js:108
- This new display-aware entry point defaults to
neutralDisplay()whenopts.displayis absent, butstaging-workbench.js's nestedrenderDocWheel(selector, entries, ...)call does not supply that option. Consequently a declared host vocabulary is lost specifically in the workbench's document wheel, even though the surrounding workbench has installed it. Update that caller to pass the current display rather than relying on this fallback.
vocab = opts.display || neutralDisplay();
src/opendox/web/views/staging-workbench.js:1610
- The mounted facet is installed here, but the workbench's add-section path still calls
insertSectionwithout passing it, sosectionRankfalls back toneutralDisplay(). A host-definedsectionsorder (including the declared empty order) is therefore ignored whenever a user adds a required section; thread this mounted display into the insertion options.
vocab = display || neutralDisplay();
setDisplay(vocab);
src/opendox/web/views/view_extension.js:118
displayis declared here as available to every binding, but only the genericmountContributedViewspath actually passes it. The caller-driven shell bindings still invoke contributed entries with narrower contexts ({gate, caps}for the viewer gate,lctxfor the lens gate,pctxfor repo projects, and the workbench create/session options), so a contributed module using this new contract receivesundefineddepending on its region. Injectdisplayinto each adapter or narrow the contract to the generic DOM path.
// `display` is SLICE S7's ONE ADDITION (§ 4.3 step 3: "`app.js` puts that facet
// in the context object every binding already receives"). It is the vocabulary
// reader of `views/display.js`, built from `/capabilities`' `display` block:
// `ctx.display.label(role)`, `.one(role)`, `.many(role)`, `.status(vocabulary,
// role)`, `.area(role)`, `.token(role)`, `.items(snapshot, role)` — every one
// of them resolved BY ROLE and never by a word. A contributed column renders
// the registered domain's vocabulary by reading it, exactly as openDox's own
// class-C views do, and inherits the neutral words when no host declares any.
src/opendox/web/views/wheel-model.js:1160
- This accepts a
displayfacet but still classifies files withisSpecDeltaPath(), whose regex hard-codesspecs/<capability>/spec.md. That makes a neutral install classify OpenSpec paths asdetail fileseven though its delta prefix is unset, and makes any host-declaredartifacts.delta.prefixineffective; parameterize the matcher/capability extraction and thread the facet throughspecDeltaPaths/landedFromDeltasand their call sites as well.
else if (isSpecDeltaPath(path)) deltas.push({ path, name: capabilityOf(path) || name });
src/opendox/web/views/wheel-model.js:1163
- The facet documents
artifacts.packet.orderas a left-to-right order, but this comparator reverses it. With the declared['proposal.md', 'design.md', 'tasks.md'], the packet flyout renderstasks.mdfirst, contradicting the profile's ordering contract and the function's authoring-order description.
docs.sort((a, b) => order.indexOf(basename(a.path)) - order.indexOf(basename(b.path)));
tests/test_web_boundary.py:821
j = konly skips over${...}while the span recorded at line 825 still starts at the opening backtick and ends at the outer backtick. Comments, strings, and regexes inside substitutions are therefore classified as template text rather than their own positions; for example,${/* proposal */ value}is reported as a governance string, and braces inside a quoted interpolation can consume the real closing brace. This makes the new scanner disagree with its stated rule that comments are excluded.
- Files reviewed: 43/43 changed files
- Comments generated: 0 new
- Review effort level: Lite
…t requirement, not a bypass
Copilot's round-5 finding on `src/opendox/web/views/view_extension.js`, and it is
this file contradicting its own contract. RULED Q1's generic pass read
const unmet = capabilities === undefined
? null : unmetRequirement(binding, capabilities);
so a caller that omitted the payload skipped RULED Q4's gate entirely: a REQUIRED
binding with an unmet requirement was imported and MOUNTED, which is the one
outcome the ruling says must refuse ("unmet + required REFUSES"), and an OPTIONAL
one mounted where it should have rendered its region empty with a named reason.
The contract it contradicts is fifteen lines into this file's own Q4 block: "A
MISSING PAYLOAD IS AN UNMET REQUIREMENT, NOT AN ERROR … `undefined` at the end of
the path is the honest answer 'this plane does not offer it', which is exactly what
an unmet requirement is." `undefined` for the WHOLE payload says that about every
path at once. It is also the posture `probeCapabilityPath` was rewritten into at
round 2, when an inherited `toString` met a requirement no payload carries: a gate
reading data this shell did not write fails CLOSED.
`unmetRequirement(binding, capabilities)` is now evaluated unconditionally.
Production behaviour is unchanged — `app.js`'s `mountContributedInto` has always
passed `{ capabilities: probedCaps, regions, signal }` — so what this closes is the
seam a later caller, a probe or a contributed column's own harness would have found
open.
`tests/test_gate_loop_contributed.py::test_js_a_pass_with_no_capabilities_payload_
refuses_instead_of_mounting` drives the real registry under node with NO payload:
the optional binding is skipped for `requires` with the probed value reported as
"not carried at all" rather than as a falsy verdict, and the required one raises
`ViewBindingError` naming the binding and the path. Neither is mounted. The test was
checked against the OLD read and fails there, so it pins the behaviour rather than
restating it.
The boundary census's `views/view_extension.js` row moves 841 -> 850 loc (class-A
total 16936 -> 16945) with the reason in its note.
Destination gate re-run from openxFactory main @ee251d6c: `verify-carve-arrival.py
--destination opendox_code --phase B` answers OK with identical figures — 119 rows
arrived, 66 declared-edit rows within their lines, 4 re-destined away and verified
vacated. `views/view_extension.js` is slice S3's CREATED file and the census fixture
is a declared one, so no annotation amendment is owed.
Lane: openxfactory-4-opendox-extraction
Refs opensoft/openXfactory#656
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…ss stops too
Copilot's round-6 finding on `src/opendox/web/app.js`, and it is round 4's finding
one and two awaits further down. Round 4 stopped the render that lost its scope
between the six contributed resolves and the first thing it mounts. But RULED Q1's
generic pass is itself AWAITED twice more — after `mountExplorer()` and after
`mountStagingWorkbench()`, which is where Copilot's round 2 put it — and each of
those awaits is a dynamic `import()` per contributed binding:
await mountContributedInto(["explorer-root"]);
await mountContributedInto(["staging-workbench-root"]);
`mountContributedViews`'s own signal check (round 3) stops only ITS mounts. It
cannot stop the CALLER that resumes after it, and below those two lines the render
keeps writing to the page: the staging workbench overlay, the tab strip, the
repository selector, `initAbout`, the global search listener — and finally
`status.remove()`, which strips `#loadstatus`. On a repository switch during one of
those imports that removal lands on the NEWER render's loading state, and the stale
render's workbench and tab strip land on top of the new one's.
So the same stop the six resolves got, at both awaits. The rule this file already
follows everywhere else — a continuation honours the signal it was handed — applied
to the two remaining stretches of `render()` that await before they write.
The third call of the same pass, the tab router's `onRegionRendered` hook, is
deliberately NOT awaited (it runs from a click handler, round 2), so its scope check
is its rejection path's: `reportAssemblyFailure`'s own guard, added at round 4. That
is why four `if (signal.aborted) return;` sites is the whole census and not five.
`tests/test_gate_loop_contributed.py::test_a_render_that_lost_its_scope_while_
mounting_writes_nothing_below` pins each stop BETWEEN its own pass and the next
thing this render writes (`mountStagingWorkbench`, `mountRepoSelector`), and both
above `status.remove()`. Round 4's test now pins the census at four rather than two
and names what each one is. Both were checked against the OLD read and fail there,
so they pin the behaviour rather than restating it.
The boundary census's `app.js` row moves 1602 -> 1618 loc (class-A total 16945 ->
16961) with the reason in its note.
Destination gate re-run from openxFactory main @ee251d6c (whose carve manifest,
admissions and verifier are byte-identical to origin/main @04340d77): `verify-carve-
arrival.py --destination opendox_code --phase B` answers OK with identical figures —
119 rows arrived, 52 digests verified, 66 declared-edit rows within their lines, 4
re-destined away and verified vacated. The two guards fall INSIDE `web/app.js`'s
already-declared edit lines, so no annotation amendment is owed and #1023 stands as
landed.
Lane: openxfactory-4-opendox-extraction
Refs opensoft/openXfactory#656
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…o S7 Leg B landed as a SQUASH (`8efb3cf`), so `origin/main` and this branch share only the pre-leg-B base `05bbde8` and git cannot see that main's one commit IS the leg-B commits this branch already carries. Merging the leg-B tip first -- whose tree is byte-identical to `8efb3cf`'s (`git diff 5c6f762 origin/main` is empty) -- gives the forward merge its true base `011c3be`, which this branch last took leg B at. Three commits arrive: rounds 4, 5 and 6. ONE conflict, `tests/fixtures/web_boundary_census.yaml`, in exactly the three hunks the pre-clear simulated (#656, this slice's ledger): `totals.A` and the `loc`/`note` of the two rows rounds 4-6 touched. `src/opendox/web/app.js` and `src/opendox/web/views/view_extension.js` auto-merge -- the rounds edit regions this slice did not. Resolved as the UNION, then RE-MEASURED rather than transcribed: * both notes take leg B's, which is a strict superset -- this branch's note for each of the two is a literal PREFIX of it (1603 of 2640 chars for app.js, 1875 of 2315 for views/view_extension.js), because this slice bumped their `loc` without appending a transition and leg B appended rounds 4/6 and round 5. * every `loc` re-measured the way `test_every_web_file_is_classified_exactly_once` measures it (`text.count("\n")`) over the MERGED files: `app.js` 1618 -> 1719, `views/view_extension.js` 850 -> 877. No other row moved. * `totals.A` re-derived the way `test_the_declared_totals_are_re_derived_from_the_rows` derives it (sum over the class's rows): {files: 25, loc: 16961} -> {files: 26, loc: 17883}. The 26th class-A file is this slice's admitted `views/display.js`. Both arithmetics cross-check: 17883 = this branch's 17840 + leg B's rounds 4-6 (+34 app.js, +9 view_extension.js), and 1618+101 = 1719, 850+27 = 877 where 101 and 27 are this slice's own additions to the two files. Lane: openxfactory-4-opendox-extraction Refs opensoft/openXfactory#656 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The tree this merge records is BYTE-IDENTICAL to its first parent (`git diff --cached HEAD` was empty at the resolution), because main's content is already fully contained here: 1. `git diff 5c6f762 origin/main` is EMPTY -- main's one commit since `05bbde8` is #20's squash and its tree equals the leg-B tip's tree. 2. `git merge-base --is-ancestor 5c6f762 HEAD` holds -- the previous commit merged that very tip. git cannot see (1)+(2) on its own: a squash gives main a single parent at `05bbde8`, so the three-way merge takes the PRE-leg-B base and reports eight conflicts in files where this slice edited a region leg B also edited. Every one is that artefact, not a real divergence, so each resolves to `--ours` -- which already carries both sides -- and the result is proved by the empty diff above rather than asserted. What this buys: main becomes an ancestor, so #21's diff against main is this slice's own delta and nothing of leg B's. Lane: openxfactory-4-opendox-extraction Refs opensoft/openXfactory#656 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
|
There was a problem hiding this comment.
Sorry @brettheap, your pull request is larger than the review limit of 150,000 diff characters
There was a problem hiding this comment.
🟡 Changes recommended
One or more issues must be addressed before approval.
Get a fresh assessment by requesting another Copilot review.
Review details
Suppressed comments (5)
src/opendox/web/views/board.js:41
- Although this heading resolves the captured source station through the display facet,
brainstormCard()still prefixes its date metadata with the literalcaptured. A host that renames the document's captured status will therefore see one word in the column heading and another on the card; usevocab.status(VOCABULARY.DOCUMENT, STATUS_ROLE.CAPTURED)for that prefix as well.
function columnLabel(role) {
return role === SOURCE
? vocab.status(VOCABULARY.DOCUMENT, STATUS_ROLE.CAPTURED)
: vocab.label(role);
src/opendox/web/views/display.js:625
applyTokensonly writes the roles in the current payload; it never removes inline--st-*properties from an earlier render. Sinceapp.jscalls this again after every capability re-probe, a host-declared color remains pinned on:rootif a later probe has no display facet or fails, overriding the stylesheet's theme defaults despite the current facet declaring no token. Clear the four shell token properties before applying the current declaration (and cover a declared-then-absent rerender).
applyTokens(element) {
if (!element || !element.style) return;
for (const role of this._declaredTokens) {
element.style.setProperty("--st-" + role, this.token(role));
}
src/opendox/web/views/explorer.js:267
displayis threaded into target resolution, but when a tile id is staletargetis null and the fallback title still uses the rawkind. For recognizedDRILL_KINDSvalues, this leaksstaged,proposal, orrealizedinstead of the host's role word on the error surface. Resolve recognized kinds to their display roles for this fallback, retaining the raw value only for truly unknown kinds.
const target = resolveExplorerTarget(kind, id, snapshot, display);
src/opendox/web/views/lineage.js:86
- Unlike the other render entry points, this keeps the previous render's display object when
opts.displayis omitted. After a host render, a caller of the exportedrenderStats(root, snapshot)without options will render host-specific words instead of the neutral vocabulary, leaking state across renders; reset toneutralDisplay()when no display is supplied.
vocab = opts?.display || vocab;
src/opendox/web/views/outline-model.js:323
- This new
options.displaypath is never supplied by the workbench:runAddSection()callsinsertSection()withoutdisplay(and the value is not threaded throughmountAddSection/renderOutlinePanel). Consequently an interactive add uses the neutralSECTION_ORDEReven when the host declares a different section order, while the outline model's read path uses the host order. Thread the mounted display through the add-section callbacks and pass it here.
// The canonical heading order is the registered domain's (slice S7); a caller
// that supplies none gets openDox's own shipped order.
const display = options.display || null;
- Files reviewed: 43/43 changed files
- Comments generated: 2
- Review effort level: Lite
…seventeen conversions, 782 declared lines (#1030) Lane: openxfactory-4 Refs #656 (stays OPEN). RULED Q1/Q2/Q7 at #656 comment 5648049748, alongside 5648044785 and 5648065587 with the counterpart-Q6 correction at 5649094228 — Brett Heap, 2026-09-12, by interactive multi-choice. CLAIM: #656 comment 5649148461. The openxFactory half RULING Q-L1 requires of § 3.4 slice S7 — the row annotation that lands BEFORE its one leg PR (opensoft/openDox-code#21, `build/s7-parameterize-class-c`). S7 is a ONE-LEG act: the files that render a word ARE the served bundle, and the served bundle arrives at openDox-code, so unlike S5 there is no openXdox-code half. Cut off `main` at #1023 (S5, `ee251d6c`) and merged forward three times since, last to `8944758c`, each merge clean. THE LARGEST DECLARED-EDIT WINDOW ANY ACT HAS OPENED ON THIS FILE: 48 entries, 782 lines, 33 rows, every one of them `opendox_code`, and SEVENTEEN of the 33 convert moved_verbatim → moved_with_declared_edit. "Parameterize class C" edits every file in the served bundle because every one of them rendered a word. Every line number is a CARVE-COMMIT line (`b075fd91…`, `opendox-carve-0`), re-derived at the leg's final head by the arrival verifier's own opcode walk over the carve blobs and never transcribed; every class is one of RULING OQ-1's three — `import rewrites` 14, `path constants` 4, `adapter calls` 764. THREE ADMISSIONS, each `since` its file's OWN introducing commit (`git log --diff-filter=A`) and not the leg branch's tip: `src/opendox/display_profile.py` and `src/opendox/web/views/display.js` at `80b1f3bc` — the DISPLAY facet's server and client halves, introduced by ONE commit because neither means anything without the other — and `tests/test_display_facet.py` at `372a04da`, the suite that holds the two against each other. The aggregate pair is re-derived by SUMMING the applied manifest, never carried forward: declared edit LINES 1584 → 2366 over 159 → 176 rows carrying `edits:`; moved_verbatim 160 → 143, moved_with_declared_edit 158 → 175, not_moved 138 unchanged; `import rewrites` 708 → 722, `path constants` 202 → 206, `adapter calls` 674 → 1438. The documents that carry those totals as ABSOLUTES move in the same commit. THREE GAPS THE WIP HAD LEFT OPEN, closed here rather than after landing: * THE WINDOW HAD NO ASSERTION. `S7_WINDOW`/`S7_CONVERTED` were declared and the amendment test's comment pointed at a test "below" that did not exist. Written: disposition, destination and LAST entries of all 33 rows, the 17 conversions asserted to carry S7's entries and no others, the window totals summed, and the four arrived suites named. * THE RUNBOOK § 2 PER-DESTINATION TABLE WAS STALE IN TWO CELLS, not one. The table was last current at `880c821c`; slice S5 moved BOTH `opendox_code` (53/70|727 → 52/71|874) and `openxdox_code` (9/83|659 → 9/83|674) and moved neither cell. S7 moves `opendox_code` again to 35/88|1656 and corrects `openxdox_code` to 674 in the same act, because the correction IS the measurement. `test_the_runbook_per_destination_table_is_the_manifests_own_sum` now re-derives every numeric cell from the manifest's own rows, and the one-replica-line invariant with them. * THE MANIFEST HEADER CARRIED NO S7 MOVEMENT-LOG PARAGRAPH, where S3/S6/S4 each append one. Appended in the established form. Verified at this head against a PRISTINE checkout of the leg's final head (openDox-code#21 @ `c7a216c`), nothing transcribed: `validate-carve-manifest.py` OK — 456 rows at `b075fd91`, 143/175/138, 318 digests, 456 files none undeclared, 4 RE-DESTINED. `verify-carve-arrival.py --destination opendox_code --phase B` OK — 119 rows arrived, 35 digests verified, 84 declared-edit rows within their lines, 149 files with NONE undeclared, 4 re-destined AWAY and VERIFIED VACATED, 21 declared admissions used and 0 unused. An INDEPENDENT re-implementation of the verifier's opcode walk finds 0 undeclared lines at the leg; run against the leg's PREVIOUS head it answers 32 rows / 714 lines, the payload measured there, which cross-validates both derivations. `pytest -q tests/carve_manifest tests/carve_arrival tests/carve_conformance tests/opendox_pin tests/openxdox_pin` → 414 passed. Copilot reviewed this branch at every head it was pushed to. ALL SEVEN THREADS and every suppressed body comment are fixed — none answered away — and each fix was PROVED against the defect it refuses before it was trusted: * the § 2 provenance paragraph still dated the totals to the S3 annotation and named S2/S6/S4 but neither S5 nor S7 — rewritten CURRENT-TO-S7, the enumeration completed, and it now states that the list is closed so the next act amends a current list rather than one two acts stale; * the three S7 admissions were the FIRST bump to land with no exact path+`since` pin — pinned in a SIXTH-BUMP block, plus one assertion that the two DISPLAY halves still share one `since` (proved: swapping a valid 40-hex, and dropping an entry, each now fail); * THE RUNBOOK-TABLE PARSER DECIDED WHAT THE CHECK COVERED, five ways over five rounds, and every one of them is a FAILURE now instead of a way past the check: a table naming a destination TWICE kept only the last row while every numeric sum read the survivor (proved with the stale `880c821c` row inserted above the current one); a block whose extent was a heuristic, so an interior blank line — and then a row that had LOST ITS LEADING `|` — moved the boundary above a row nothing then read (the block is bounded by § 2's own two sentences now); a line `match()` skipped rather than `fullmatch`ed; a key grammar NARROWER than the validator's own `^[a-z][a-z0-9_]*$`, which would have refused a destination the manifest accepts; and the one PROSE cell — `opendox_root`'s empty-root marker — read by its FIRST WORD, so `none — stale` claimed the empty walk and passed every numeric check (pinned whole now, proved); * A MISSING DOCUMENT WAS A BRANCH RATHER THAN A FAILURE, in both carve suites. The runbook's absence made the § 2 invariant vacuous exactly when § 2 disappeared; and `if not manifest.is_file(): assert True; return` — where `assert True` REPORTS A PASS, the same green bar these modules refuse a `pytest.skip` for — turned FIVE pins on the landed manifest into no-ops in `tests/carve_manifest/` and four more in `tests/carve_arrival/`, where a fifth asserted the verifier's APOLOGY ("the manifest could not be read") instead of its answer. Both suites read the document through `the_landed_manifest()` now, where absence is a named failure; the two real seats keep their branches because the absence is their subject — the validator's `NO MANIFEST` line and the verifier's `NO DESTINATION` line, each asserted rather than skipped. Proved with the manifest moved aside: five green passes become five failures in each module; * A COUNT OF A COLLAPSED OR REPEATING COLLECTION IS NOT A COUNT OF WHAT WAS DECLARED, three times over: `len(S7_CONVERTED) == 17` plus a subset check is true of a list where one conversion is OMITTED and another path appears TWICE (seventeen DISTINCT paths are now required — proved by dropping `views/wheel-model.js` and duplicating `views/model.js`); `len(S7_WINDOW) == 33` counted the SURVIVORS of a dict literal's collapse, the duplicate being invisible to every other assertion (the 33 keys are read off the literal's own source with `ast` now — all distinct, and the same set the imported table carries); and a line declared TWICE inside one row kept the 782 and the 2366 intact while one really edited line went undeclared, to be refused at the DESTINATION an act later (both figures now require a row's declared lines to be distinct — proved with `test_doc_surfaces.py`'s last S7 line replaced by a duplicate of its first, in the manifest and the table alike). * THE § 5.5 WORKED EXAMPLE TOLD AN OPERATOR TO EXPECT A RUN THIS MANIFEST CANNOT PRODUCE. Its two `# expect exit 0:` comments were written when the runbook landed (`a970fd9d`) and never touched again: phase A still expected `123 row(s) arrived` after RULED Q6 re-destined four of `opendox_code`'s rows AWAY — this act's own § 2 paragraph says 119 — and phase B expected `62 edited row(s), declared-lines-only`, a phrase NEITHER SCRIPT CONTAINS, so no run could be compared with it at all. Both are re-measured and pinned the way § 2's table is, one section down: `test_the_runbook_phase_examples_are_the_arrival_the_manifest_produces` takes every number from the landed manifest through `rows_for()` — the EFFECTIVE arrival, which is what a run places — and COMPOSES the words with the verifier's own `_print_ok`, the runbook's `…` elisions and its one `<origin/main>` placeholder its only wildcards. The note beneath the example rested on a premise false since BUILD slice 2 — that `opendox_code`'s admissions block "is `created: []`", which THIS act adds three more entries to — restated as what actually keeps its ad-hoc `--allow-created` flags correct (neither `pytest.ini` nor `conftest.py` is among the paths declared) and read against the landed admissions file, so the note's own predicted expiry is a failing test rather than a sentence nobody re-reads. Proved six ways, one change at a time: the pre-round-10 runbook, the declared-edit figure, the old wording, a `--replica-at` dropped with the `3 of 3` line left alone, a comment moved above the command's own lines, and `pytest.ini` declared in the admissions file. * § 2's OWN TOTALS WERE TRANSCRIPTIONS, AND THE WORKED EXAMPLE HAD STOPPED RUNNING AT THE LEG IT IS WRITTEN FOR (five suppressed comments in one review, no threads). § 2's paragraph says its figures "are the same measurement `validate-carve-manifest.py` prints and `test_carve_manifest.py` pins" — and that test never opens the runbook: it pins the MANIFEST's `(2366, 176)` and its 20 replica rows, a claim about the file and not about the sentence that transcribes it. So `143 / 175 / 138`, the `20`, `722 / 206 / 1438`, `318` and `176` were transcriptions nothing compared with what they transcribe — the per-destination table's defect one paragraph up. Both blocks are read now, bounded by § 2's own two sentences and split into exactly two paragraphs, and every cell is re-derived: the dispositions against the VALIDATOR's closed vocabulary verbatim and in order, the class list against the manifest's own `edit_classes:`, and the sentence's own arithmetic (176 carriers = 175 edited rows + the one replica that declares a line). THE PHASE-B EXAMPLE'S MISSING Q-L7 REPLICA was not under-checking but a REFUSAL: § 5.5's exemption ("leg 1 … takes the depth fix in a later declared act") EXPIRED when openDox-code took it at `3954d78` (#19, 2026-09-12), so the copy's bytes are no blob at the carve commit and an undeclared copy is `arrival-undeclared-file` — run both ways against `c7a216c7` to prove it. The flag is in the example, `84` → `85` and `3 of 3` → `4 of 4` move with it, and the test derives the phase-B figure from the example's OWN command line (this leg's edited rows plus one per line-declaring flag) and requires every line-declaring replica row to be declared there. Phase A takes no such flag and the runbook now says why, measured in the leg's own history: the copies are absent at commit A (`8e8983d`) and first appear at commit B (`749c926`). And the module docstring's "THE FIVE TESTS" — six by then, seven now — is COUNTED from the call sites with `ast` rather than maintained by hand. Proved ten ways, one change at a time. OWED AND REGISTERED, not absorbed: RULED Q7's CSS EXTRACTION stays open exactly where #1023 left it — this act renames the four `--st-*` tokens by role IN PLACE and moves no stylesheet block — and `views/viewer.js:262`'s `doc.stage` pill is a boundary-note amendment, not a declared edit. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…arameterized) (#8) Lane: openxfactory-4 (openXfactory-4-openDox_extraction) Refs opensoft/openXfactory#656 (stays OPEN). CLAIM: 5656720756. First leg of pin lockstep #2, on pin lockstep #1's precedent (#7 -> 7cf6c14): `code` (opensoft/openDox-code) advances `05bbde80` -> `1e469713`, carrying S 3.4 S5 leg B (opensoft/openDox-code#20 -> 8efb3cf5, the shell contributes the gate loop; RULED Q1-Q12) and S 3.4 S7 (opensoft/openDox-code#21 -> 1e469713, class C parameterized plus the four arrived Act-1 suites). `spec` unchanged at `a8f5eb73`. Two files, the two #7 predicts; the digest is sorted-ls-tree-r-v1 recomputed from the submodule's own object store, not retyped. Gate evidence: `validate` SUCCESS at `f4e89880b237291790eb8e40ec9499df47893b01` (base confirmed `main`); `scripts/validate-pins.py` recomputes the tree digest and confirms gitlink/pin-file lockstep (`pins ok`); `validate-manifest.py` and `validate-repository-naming.py` also pass; 0 review thread(s), 0 unresolved. Lane: openxfactory-4 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…deletion Lane: openxfactory-4 ONE CONFLICT, and it is the act itself: openDox-code #21 (§ 3.4 slice S7, `1e46971`) edited `tests/test_wheel_verbs_dom.py` — three lines — and this branch DELETES that file under RULED `openxFactory#656` comment 5656343213. `modify/delete` resolved by keeping the deletion: a ruling that retires an arrival is not undone by a later edit to the file it retires, and S7's own annotation says nothing about whether the suite keeps running. WHAT THAT MEANS AT THE FLOOR, stated because it is the interesting half: openxFactory PR #1030 (S7's annotation, landed at `b3a75537`) added an `adapter calls` entry at carve line 310 to THIS row, so the row now declares `path constants [26]` AND `adapter calls [310]` — and the file is about to be absent at this leg. That is lawful and is what the form is for: `verify-carve-arrival.py` drops a RETIRED row before it asks anything of the destination, so a declaration on a row whose arrival a ruling deleted is carried, not applied. The row goes on recording what the carve moved and what each ruling did to it — which is the whole reason a retirement is a field rather than a deletion of the row. Refs openxFactory#656 (stays OPEN). RULED 5656343213. CLAIM: openxFactory#656 comment 5656690570. Lane: openxfactory-4 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
…tests Lane: openxfactory-4 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…date for the web suites (283 → 694 tests) (#23) Lane: openxfactory-4 Refs opensoft/openXfactory#656 (stays OPEN). CLAIM: #656 comment 5649985838. RULED 2026-09-13 at #656 comment 5656343213 (Brett Heap, by interactive multi-choice) — "the path constant moves, the file does not". Spec: openDox-spec docs/front-end-package-boundary.md § 5 row S8 and § 1.2(d) @ 7d12428c. LEG B of § 3.4 slice S8, the receive half, and the last of the three. Lands AFTER openxFactory#1025 (which declares every line these edits touch), after openXdox-code#19, and after S7 (#21, landed 1e46971), which this branch carries. FOUR CARVE PATH CONSTANTS REPAIRED, all one defect class — the carve's import rewrites edit class rewrote most path literals and missed these, and each is the reason a whole suite could not run: tests/test_outline_model.py:22 parents[2] -> parents[1] 48 failed -> 47 passed tests/test_doxbench_view.py:303 tests/ideation-dashboard/fixtures/ -> tests/fixtures/ 73 errors -> 124 passed tests/test_doxbench_knowledge.py:31 scripts/ideation_dashboard/... -> src/opendox/... 21 failed -> 56 passed tests/test_doxbench_document_abstract.py:44 same 2 failed -> 54 passed tests/test_doxbench_memory_gateway.py:32 same 12 failed -> 3 failed tests/test_bullseye_widget.py:1674 scripts/ideation_dashboard/serve.py -> src/opendox/serve.py 5 failed -> 4 failed test_outline_model.py:22 is the openDox-code#19 defect one file over: #19 fixed REPO_ROOT depth in tests/conftest.py, and this is the only other module in the tree that computes its own. Every edited line is DECLARED on its own row in #1025, class path constants, which is why the annotation lands first. VALIDATE UN-NARROWED FOR THE WEB SUITES. RULED Q-L5 (b') narrowed this leg's validate to its shape assertions until the BUILD arc inverts the openDox -> openXdox dependency; the note's S8 row lifts it for the web suites, and the S2 paragraph already standing in this workflow says of the DOM probes that "un-narrowing that class of test is slice S8's job, not S2's". The list goes from 10 files to 27 and from 283 tests to 694 passed. Seventeen carved suites join the ten shape assertions, each run ALONE under the workflow's own invocation before it was named — the point of the rule being that adding a red file puts a required check red for a defect the slice does not own. WHAT IS NOT CLAIMED, measured rather than inferred: pytest -q over the tree is 1188 errors / 0 passed, 1126 of them the single line src/opendox/serve.py:192 from ideation_dashboard import serve_openxfactory_lanes, reached from the autouse declared_human_console fixture. tests/test_consumer_reach.py's STILL_REACHING records that reach by name and asserts it still fails, so repairing it here would turn test_the_reaching_modules_are_recorded_as_reaching red. RULED Q-L5 (b') waits on the BUILD arc. TWO SUITES RULED TO RETIRE, NOT REPAIRED AND NOT DELETED. tests/test_intent_tray_dom.py (23 tests) and tests/test_wheel_verbs_dom.py (8) drive views/intent-feed.js — a RULED OQ-F not_moved row present at neither leg, whose surface S2 replaced with views/intent-binding.js. re_destined: to: openxfactory is not expressible (to is held to the CLOSED destinations: keys; openxFactory is the SOURCE), re_destined: on a not_moved row refuses carve-re-destined-not-moved, and deleting an arrived row has no form at all. RULED 5656343213: both RETIRE at this leg as a declared act citing OQ-F, under a retired: row form registered as the NEXT carve-floor act (CLAIMED at #656 comment 5656690570). They land here untouched and narrowed out of validate, named RETIRING. THE BASE LANDED BY SQUASH, which is not the merge a stacked branch expects: this branch carried #21's older head d672f0c, and the squash put ONE commit on main re-applying #21's whole change with no shared history. Merging origin/main straight in conflicts in FIVE files, four of which this PR does not author. Merging #21's real head c7a216c FIRST is clean, and main after it conflicts in ONE - .github/workflows/validate.yml, both blocks with an EMPTY theirs side, a purely positional conflict exactly like openXdox-code#19's. The resolution keeps this branch's side and then PROVES nothing was lost: the narrowed list is read out of both index stages and the result required to be a superset of each. Still 27 files, main's own 10 all present, YAML parses, no marker left. THREE COPILOT ROUNDS AT THE MERGED HEAD, FIVE FINDINGS, ALL ACCURATE AND ALL FIXED - none answered away, and not one of them moved the pytest list, which is the same 27 files throughout. 0606625, one thread (comment 5690530437 answers the round): the audit block said three of the six repaired suites are named below and three omitted, while the list names TWO and omits FOUR. Both sets are now enumerated by filename with the measured reason each is omitted. -> fa6b951 fa6b951, three suppressed comments: (1) the block said 691 where the merged head runs 694 - and the figure moved TWICE, both steps the BASE's, +8 from test_display_facet.py in the S7 base 706b533 and +3 from test_gate_loop_contributed.py, which grew 128 lines when the merge-forward brought origin/main in (31 test functions at a7b7ac2, 34 now); (2) RULED Q-L5 (b')'s head paragraph said validate runs only shape assertions while this same block lifts the narrowing - now marked the PRE-S8 baseline with the half that still stands named; (3) the S2 paragraph said tests/test_intent_binding_dom.py "stays off this list" and S8 names it - the paragraph records S2's state and the list today's, the two omitted DOM probes kept distinct and MEASURED (23 failed and 8 failed alone at this head, and neither among the six suites this slice repairs). -> 142da66 142da66, approval with one suppressed comment (comment 5690590859): that same test file's own module header still said it was NOT in validate.yml, and still described tests/conftest.py as carrying HERE.parent.parent - it reads HERE.parent since openDox-code#19 3954d78, the RULED Q-L7 (a) :25 depth fix this manifest declares. Both recorded. -> ce0f28b The PR title's 283 -> 683 is corrected to 283 -> 694 in the same pass, for the same reason the block's was. Plain gate: validate run 35043791850 SUCCESS at ce0f28b; 4 review threads / 0 unresolved. Reproduced locally under the workflow's own invocation at the merged head: 694 passed. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
… DECLARED ACT This reverts `a32c1094e80cd53c4fbb8112037b5c7211f803cb`, pushed to this branch by `copilot-swe-agent[bot]` after the `@copilot review` request — an implementation of its own round-1 finding, not a change this lane authored. It is reverted rather than kept, on four measurements and not on preference. 1. IT IS AN UNDECLARED MOVEMENT AS PUSHED, which is the one thing the carve floor refuses. Run against the paired annotation (openxFactory#1085) with the arrival verifier's own rule, it edits TEN further carve-commit lines of `scripts/ideation_dashboard/web/views/staging-workbench.js` — 1124, 1188, 1238, 1266, 1334, 1346, 1362, 1380, 1428, 1941 — which that annotation does not declare, so `verify-carve-arrival.py --phase B` answers `arrival-undeclared-edit` and the pair this branch belongs to becomes false. RULING Q-L1's order is that the annotation declares FIRST and the leg realizes; an act cannot declare seven lines and land seventeen. 2. THE HAZARD IT GUARDS CANNOT ARISE IN THIS SHELL. `readDisplay(` is called in exactly ONE place in the whole bundle — `src/opendox/web/app.js:1141` — and that one `Display` reaches every mount through `ctx.display`. Two live workbenches therefore carry the SAME facet, so a click from the first cannot reach "the second host's section order". That is the difference from the gate COLUMNS, which are resolved per binding and genuinely differ between mounts, which is why openDox-code#20's round 2 made THOSE per-mount consts and left the vocabulary as module state. 3. AND IT IS A PARTIAL REPAIR OF A MODULE-WIDE PATTERN. This file reads the module-level `vocab` at 13 sites across 6 functions, and slice S7 installs the same facet into the pure model through `staging-workbench-model.js`'s own `setDisplay`, which is module state by the same design. Threading it into `runAddSection` alone leaves every one of those with exactly the described hazard while making the file look as though it had been addressed. 4. NOR DOES IT CARRY THE LANE'S TRAILERS, which every commit on this branch does. REGISTERED, not dismissed: "the workbench vocabulary becomes a per-mount value like the columns" is owed to a declared act of its own, across `staging-workbench.js` and `staging-workbench-model.js`, with its own annotation declaring the lines. That is the same disposition slice S8's two path constants got on #21 — the disposition this very pull request exists to discharge. Refs #656 (stays OPEN). Lane: openxfactory-4 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
… binding's own sheet (#27) Lane: openxfactory-4 (openXfactory-4-openDox_extraction) RULED Q7 (`opensoft/openXfactory#656` comment `5648049748`): *"a contributed binding's CSS lives WITH THE BINDING, in its own sheet."* Slice S5 recorded the extraction as owed and blocked (`openxdox.view_extensions.STYLE_RESIDUE`); the S7 LANDED note (`5688498049`) register item 1 records it still owed. This is openDox's half. Its declared-edit window landed first as openxFactory #1068. THE SEAM. `ViewBinding` gains an optional `styles` slot — one bundle-relative `./….css` specifier, validated by `_SHEET` (`_MODULE`'s grammar with `.css`, a second pattern rather than one widened: a `<link>` fetches without `type="module"`'s CORS rules). `as_manifest_entry()` carries it, so `/capabilities` publishes it with no new route. `views/view_extension.js` validates the same field with the same refusal — `null` included, because the Python seam refuses `None` and § 4.1 asks one vocabulary of both halves — and `resolveBinding` injects ONE `<link rel="stylesheet">` into `document.head` (never `document.body`, RULED Q8), deduped by resolved href, before the module import and after RULED Q4's verdict. The generic mount pass forwards its own `document`, so the sheet follows the panel into an iframe or a test document. A sheet that fails to load is a NAMED console refusal and the panel mounts unstyled: a binding's contract is its manifest entry, not its appearance. WHAT LEFT `styles.css`: 59 rule blocks, 99 lines — 98 verbatim into the four sheets and one selector list SPLIT in place so openDox keeps `.filterpop [hidden]`. The census is re-derived at openDox-code `0b4e8bbf` / openXdox-code `0a0265f7`: 54 gate-exclusive classes, 18 shared. (18, and the record says why it moved twice: Copilot's round 3 stopped the census counting a bare literal in a non-class position, and rounds 5-6 bounded an assignment to a class-named target and a `.token` to a literal SHAPED like a selector with the dot in selector POSITION -- so 24 -> 22 -> 21 -> 18 as `why`, then `g`, `lens` and `topic` stopped being read as named by the gate. WHAT LEAVES NEVER MOVED: 54 gate-exclusive classes, 59 blocks at the same extents, 89 lines) `STYLE_RESIDUE`'s `51 / 24` reproduces EXACTLY at `cb343ae8` under a literal-only scan — and the 51 was three short, because `.dispose-accepted`, `.dispose-rejected` and `.dispose-deferred` are built by `"disposebtn dispose-" + v.outcome` (`dispose.js`:275). Every `--st-*` token in all four theme blocks, all 22 shared selectors and the six orphaned `.intentchip*` rules STAY. THE PROOF. `tests/test_binding_stylesheets.py`, `--noconftest` safe and on `validate.yml`'s explicit list: the slot refused at both halves, the absent case carried, the injector driven under `node` against the real registry (one link for two bindings naming one sheet, none for a binding declaring none, `head` and never `body`, the failed-sheet warning, and the mount pass's own document), and the extraction measured against the file three ways — no gate-exclusive selector survives, the complete shared set (18 today) and all four tokens do, and an ORPHAN REGISTER of 30 classes that runs with NO assembly catches a gate-only selector the declared tuple never heard of. A comment is not ownership evidence: the scan blanks comments quote-aware, which is what put `divider` and `ghost` in the register. COPILOT, ELEVEN REVIEWS, 4 threads and all of them resolved, every finding taken with the mutation that proves the repair or refuted by measurement: `styles: null` refused, the mount pass's document forwarded, the `--st-*` guard matching a declaration after `{`/`;`, the extraction proof made able to fail without an assembly, comments excluded from ownership, the shared set made complete rather than sampled, the sheet scan recursive, the no-assembly orphan proof no longer sweeping the six gate modules into openDox's own corpus, and the census `note:` provenance brought current for both files this act moves. ONE REFUTED BY MEASUREMENT: JavaScript's `$` does NOT match before a final newline — that is Python's, which is why this act's Python half anchors with `\Z`; measured on this branch's own regex under Node v24.21.0, `"./views/gate.css\n"`, `"...\r\n"` and `"... "` are all false, and the client harness asserts `["refused"] * 7`. The LAST review at this head enumerates nothing — "Comments generated: 0 new", no suppressed section — which is the gate's Copilot clause met, read from the BODY and not from the thread count. `validate.yml`'s exact invocation at this head, read out of the `validate` run's own log: **712 passed, 2 skipped**. SonarCloud advisory FAILURE, as on #21. WHAT THIS DOES NOT DO. It ships no sheet: the four land at openXdox-code #22 with the bindings that own them (RULED Q5's package data). It touches neither `app.js` nor `index.html`. RULED openxFactory#656 comment `5700475319` (Brett Heap, 2026-09-16, by interactive multi-choice) answers the two questions this act put to him, both as it already does them, and both are cited where the decision is stated: FOUR sheets for six bindings with a single `styles` specifier and href de-duplication LOAD-BEARING; and the 13 non-`--st-` custom properties MOVED VERBATIM with the coupling REGISTERED BY MEASUREMENT in `STYLE_RESIDUE["open_coupling"]`, asserted by openXdox-code's own suite. Refs #656 (stays OPEN). CLAIM: 5699629486. Lane: openxfactory-4 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…t leaves (#1085) Lane: openxfactory-4 (openXfactory-4-openDox_extraction) **The annotation of the § 3.4 slice-S7 RESIDUE pair, and it lands FIRST** — RULING **Q-L1**'s order ([`#656` comment `5628560136`](#656 (comment))). Its one leg is opensoft/openDox-code#28 (`build/s7-residue-leaf-facet`), which realizes exactly the lines this declares and nothing else. CLAIM: [`5714327188`](#656 (comment)). Refs #656 (stays OPEN). **#1068 HAS LANDED** (RULED Q7's CSS extraction annotation, main `24f7a213`) and this branch has MERGED it: the two acts edit the same one `docs/opendox-carve-manifest.yaml`, `docs/opendox-cutover-runbook.md`, `README.md`, the three script docstrings and both carve suites, so eight files conflicted and every conflict was on a figure both acts re-state. Every absolute below is re-derived at the merged head by SUMMING the merged manifest — never by adding the two sides' deltas — and re-measured before it was written down. ## What is declared SEVEN display-facet **leaves** that slice S7's own review found **inside the modules S7 had already parameterized at their mounts** — two threads Copilot opened on openDox-code#21 at its gated head `c7a216c7` and **five it left SUPPRESSED in review [`5192900474`](opensoft/openDox-code#21 (review) body, with zero threads opened**. The S7 LANDED note ([`5688498049`](#656 (comment))) carried them forward as owed. | row (`opendox_code`) | class | carve lines | the leaf | | --- | --- | ---: | --- | | `web/views/board.js` | `adapter calls` | `82` | `brainstormCard()`'s date metadata spelled the literal `captured` beneath a heading that resolves the same status | | `web/views/docs.js` | `adapter calls` | `37`, `39` | `docHaystack()` indexed the raw `d.stage` while the row renders `vocab.documentStageWord(d.stage)` | | `web/views/explorer.js` | `adapter calls` | `225` | the stale-tile fallback title rendered the raw `DRILL_KINDS` seam key | | `web/views/staging-workbench.js` | `adapter calls` | `805`, `1202`, `1204` | the nested `renderDocWheel` mounted without `display`; `runAddSection()` handed `insertSection` no `options.display` | **SEVEN FINDINGS, FOUR ROWS, SEVEN LINES, and the arithmetic is not a slip**: `views/staging-workbench.js` carries two of the findings, and the seventh — `views/display.js`, whose `applyTokens` never cleared an earlier facet's inline `--st-*` properties — is an ADMITTED created file with no manifest row at all, so it is declared as an admission and not as a line. **WHY THEY WERE NOT TAKEN ON #21.** Each edits a carve-commit line the landed S7 window does not declare, and that was PROVED at the time against a pristine checkout with the floor's own `verify-carve-arrival.py` (`arrival-undeclared-edit`), then registered rather than taken. It is the same disposition Act 1 gave slice S8's two path constants: measured, left alone, and owed to the act that declares them. ## What moves, and what does not **NOTHING CONVERTS AND NO ROW COUNT MOVES.** All four rows were already `moved_with_declared_edit` and already carriers — three converted by slice S7 and `views/staging-workbench.js` by slice S5 — so the disposition counts (`143 / 175 / 138`), the carrier count (`176`) and the replica count (`20`) stand where the pre-existing `openxdox_code` annotation left them. **ONE CLASS ONLY**: every leaf is a call into the display facet, which is RULING OQ-1's `adapter calls` and neither of its other two — no import moves and no path is spelled. **EVERY ABSOLUTE IS RE-DERIVED BY SUMMING THE APPLIED MANIFEST, never transcribed:** | | before | after | | --- | ---: | ---: | | declared edit lines | 2710 | **2717** | | `adapter calls` | 1738 | **1745** | | `import rewrites` / `path constants` | 726 / 246 | unchanged | | rows carrying `edits:` | 176 | unchanged | | runbook § 2 table, `opendox_code` declared lines | 1756 | **1763** | | the four destination figures | 2708 | **2715** (+ the replica row's two = 2717) | The same figure is re-derived in `README.md`'s doc-index line and in the three script docstrings that state it (`scripts/carve_lines.py`, `scripts/verify-carve-arrival.py`, `scripts/validate-carve-manifest.py`). The round-10/11 tests in `tests/carve_arrival/` re-derive the runbook's tables from the manifest and were red until they moved. **And the runbook's § 2 DATED HISTORY carries this act too** (Copilot review at the merged head, which found that history still ending at RULED Q7 with "it moves them LAST"): the history is in LANDING ORDER, so Q7's claim is qualified and the residue gets the paragraph every act on this document has — four rows, +7, nothing else moving, `2710 + 7 = 2717`, and the two of the seven findings that declare no line here with the reason for each. **THE LINE NUMBERS ARE THE VERIFIER'S OWN, never read off a diff**: derived with `carve_lines.text_records` + `difflib` opcodes under `_check_declared_lines`'s rule (`replace`/`delete` touch carve lines `i1+1 … i2`; an `insert` is declared by EITHER neighbour, so the minimal declaration names one), against the leg's head and minus every line slice S7 or S8 already declared. ## One landed assertion was amended — by BOTH acts, independently, and the merge keeps it once `test_the_real_manifest_carries_the_s7_display_facet_declared_edits` § 2 read a converted row's **whole** `edits` list — its own comment says *"a converted row carried no `edits:` before this act, so S7's entries are its ONLY entries"* — and that is S7's claim only while S7 is the newest act on all seventeen converted rows. **It is not, twice over:** RULED Q7 appends an eighteenth entry to `web/styles.css` and this act appends to three more (`board.js`, `docs.js`, `explorer.js`). What the conversion actually claims is that the row carried nothing BEFORE S7, and in a document appended to in landing order that is a **PREFIX**; it is read as one now, keeping every claim the equality made bar the accident of being the whole list — which belongs to whichever act annotated the row most recently and to no act permanently. This is the same amendment, for the same reason, that slice S8 made to the run directly above it. **#1068 and this act wrote that amendment separately, in the same words**, which is what two acts finding the same defect looks like. The merge keeps **Q7's landed assertion** and **one** note, naming both appending acts — no second copy of the argument, and no change to what is asserted. ## The window has its own assertion `S7R_WINDOW` + `test_the_real_manifest_carries_the_s7_residue_declared_edits`: * the four keys read **off the dict literal with `ast`** (round 8's rule on #1030 — a dict literal collapses a repeated key at import, so a `len()` of the imported object counts the SURVIVORS); * disposition and destination per row; * the entries as a **contiguous run occurring exactly once** and **STRICTLY AFTER slice S7's own run on the same row** — the residue is what S7's review found and S7 could not take, so an entry sitting ahead of S7's would be a document telling the arrival verifier a history that did not happen; * **row-wide line distinctness** (round 5's finding on #1030: a repeated line number is lawful to the validator and read as a SET by the verifier, so it would keep every total intact while one really edited line went undeclared); * the totals summed, not transcribed — `(7, 4)`, `{"adapter calls": 7}`, and the HARD-CODED base that makes the re-derivation compulsory, now `2710 + 7 == 2717`. **It has fired twice, both times as designed**: `2454 + lines == 2461` went red on the merge that brought RULED 5656343213's retirement act in, and `2621 + lines == 2628` went red on this one. The comment written at the first firing PREDICTED this one exactly — base 2710, the `opendox_code` cell reaching 1763 — and the three figures were re-measured at the merged head before the line was rewritten, so the prediction is recorded as met and never used as the source. That prediction spelled the cell `1674 -> 1763`, and **1674 is not a state the landed document ever carried** (Copilot's third round, reading the runbook's history beside the comment): it was THIS BRANCH's cell before the merge — 1667 plus this act's seven, on the pre-Q7 base — while `main`'s own sequence is 1667 → 1756 → 1763. The comment now says which document each figure belongs to, because the arithmetic a merge invalidates is exactly the pre-merge branch's; * and a **sweep over every other `*_WINDOW` in the module** proving row-disjointness. Written as a sweep and not as a named pair on purpose: RULED Q7's `Q7_WINDOW` (#1068, one row, `web/styles.css`) was named there as the next one due and **the sweep picked it up on this merge with no edit to the loop**, where `assert not (set(Q7_WINDOW) & set(S7R_WINDOW))` would have been a `NameError` until then and an unamended test after. ## Every historical aggregate in these suites is now a figure the file PINS Four Copilot rounds at the merged heads each found one stale or mislabelled figure, and the last two were the same CLASS: a *"when this was written"* aggregate, which is checkable by nobody — including the author, one merge later. They are restated as the landing sequence the suites themselves assert: the slice-S7 window `(2366, 176)` as it landed (§ 3's own `1584 + 782` and `159 + 17`) and `(2717, 176)` today; the slice-S8 pin `(2406, 176)` (`2366 + 40`, the sum stated four hunks above it); the arrival suite's § 2 docstring 2717 / 2710 / 2621. A LANDING figure is a delta against the document that act found, so no successor can make it wrong — which is the same rule this act's own window states for its `2710 + 7 = 2717`. ## Gate, measured at this head ``` scripts/validate-carve-manifest.py OK — 456 rows at b075fd9 (opendox-carve-0); 143 / 175 / 138; 318 digests recomputed; 456 files in the declared surface with none undeclared; 319 shed rows absent at source; 4 RE-DESTINED by ruling; 2 RETIRED by ruling scripts/verify-carve-arrival.py --destination opendox_code --phase B --dest-root <openDox-code main 5c137a90> + § 5.5's four --replica-at flags OK — 117 rows arrived, 35 digests verified, 82 declared-edit rows within their lines, 1 unapplied, 4 of 4 declared replicas verified, 148 files under src/opendox, tests with NONE undeclared, 0 re-destined HERE and 4 AWAY verified vacated, 2 rows RETIRED here by ruling and VERIFIED ABSENT, 22 declared admissions used, 11 stale pytest -q tests/carve_manifest tests/carve_arrival tests/carve_conformance \ tests/opendox_pin tests/openxdox_pin 483 passed (at the pre-merge head 71c5eea) pytest -q tests/carve_manifest tests/carve_arrival \ tests/carve_conformance 446 passed (at this merged head) ``` **The `1 unapplied` is not this act's** and is the same one the S7 note recorded: `scripts/ideation_dashboard/doxbench_scope_types.py`'s three `adapter calls` lines, a group-3 record declared at the carve itself against open successor #838. ## What this does NOT do — residue, by name 1. **`tests/test_doc_wheel.py:393`'s 600-character window.** It finds `renderAbstract(abstract,` by reading 600 characters from `renderDocWheel(selector` — 470 apart at the leg's base — so a house-style comment block at that site turns a WIRING assertion red for a reason unrelated to wiring. Repairing the window is an edit to a carved test file at lines this annotation does not declare, so it is registered here, not taken. 2. **`views/viewer.js:262`'s `doc.stage` pill** stays a boundary-note amendment, exactly where the S7 note's register put it. 3. The **STALE admissions** the arrival run reports at `opendox_code` are eleven against main: ten `src/opendox/runtime/*` files that are openDox-code #25/#26's, declared ahead of their legs and untouched here, and **this act's own `tests/test_display_facet_leaves.py`** — declared here, introduced at the leg (`338143a3`), and used the moment openDox-code#28 lands. A declared-but-unused admission is the expected state of the window an annotation-then-leg pair opens. 4. The **`arrival-not-retired` finding this branch recorded at the previous merge is GONE**, measured: openDox-code#24 landed (`0e65b5f8`), so `tests/test_intent_tray_dom.py` is absent at openDox-code main and the phase-B run above answers `2 row(s) RETIRED here by ruling and verified absent`. It still answers against THIS act's leg branch, whose base `0b4e8bbf` predates that deletion — a fact about the leg's base, not about either window. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Lane: openxfactory-4 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…er reached (#28) Lane: openxfactory-4 (openXfactory-4-openDox_extraction) **The leg of the § 3.4 slice-S7 RESIDUE pair.** Its paired openxFactory row annotation (`chore/s7-residue-declared-edits`) declares every carve line this branch edits and **lands FIRST**, which is RULING **Q-L1**'s order ([`#656` comment `5628560136`](opensoft/openXfactory#656 (comment))). CLAIM: [`5714327188`](opensoft/openXfactory#656 (comment)). Refs #656 (stays OPEN). ## What this is SEVEN display-facet **leaves** that slice S7's own review found **inside the modules S7 had already parameterized at their mounts** — two threads Copilot opened on #21 at its gated head `c7a216c7` and **five it left SUPPRESSED in review [`5192900474`](#21 (review) body, with zero threads opened**. The S7 LANDED note ([`#656` comment `5688498049`](opensoft/openXfactory#656 (comment))) carried them forward as owed, and the gate's own rule — read the review BODY, never the thread count — is why they were not lost. Every one is the same failure: the vocabulary is installed where a view is MOUNTED and never threaded to a LEAF inside it. | file | leaf | what a host saw | | --- | --- | --- | | `views/docs.js` | `docHaystack()` indexed the raw `d.stage` while the row renders `vocab.documentStageWord(d.stage)` | a host mapping `brainstorm` to `jotted` hid every such document from a search for the word on screen | | `views/staging-workbench.js` | the nested `renderDocWheel` mounted without `display` | one pane in two vocabularies — `doc-wheel.js` resets its module vocabulary to `opts.display \|\| neutralDisplay()` on **every** render | | `views/staging-workbench.js` | `runAddSection()` handed `insertSection` no `options.display` | the **only** interactive add route placed and duplicate-checked sections against the neutral `SECTION_ORDER` inside an outline rendered in the host's words | | `views/board.js` | `brainstormCard()`'s date metadata spelled `captured` | one card in two vocabularies, beneath a heading that resolves the same status through the facet | | `views/display.js` | `applyTokens()` only ever ADDED inline `--st-*` properties | a role the new facet does not declare kept the old facet's colour, and an inline custom property outranks the stylesheet's theme-aware default | | `views/explorer.js` | the stale-tile fallback title rendered the raw `DRILL_KINDS` seam key | `proposal · REQ-14` in a dialog heading whose every other label resolves | | `views/lineage.js` | `renderStats()` kept the PREVIOUS render's vocabulary (`\|\| vocab`) | a render after a host facet was withdrawn went on speaking the withdrawn host's words instead of coming up visibly un-domained | **SIX OF THE SEVEN ARE INVISIBLE TO `tests/test_web_boundary.py` ASSERTION 4 and always would have been** — `captured` is in neither `_STATUS_WORDS` nor `_STAGE_WORDS`, a mount that forwards no option spells nothing at all, and a fallback that keeps the previous vocabulary is a missing RESET rather than a literal. The boundary census can be green while a pane renders in two vocabularies at once, which is why a review round and not the census found these. **`views/lineage.js` was the ONE site of eleven.** Measured over `src/opendox/web/views/*.js`: eleven modules install a module-level vocabulary at their render entry point and ten already reset to `neutralDisplay()`. `test_every_module_vocabulary_resets` is now the ratchet, and it pins the SET too, so a twelfth module that adopts the idiom and forgets the reset fails here instead of waiting for a review round. ## The proof `tests/test_display_facet_leaves.py`, **12 tests**, on the same footing as its neighbours in `validate.yml`'s narrowed list: it imports no `opendox` submodule at all, reads bundle files as text, and drives the REAL `views/display.js`, `views/explorer.js` and `views/outline-model.js` under the `node` the runner already has (skipped, never failed, where node is absent). `--noconftest` safe. THREE assertions RUN the module and nine read it, and the split is the tree's, not a preference: `applyTokens`, `drillKindWord` and `insertSection` are reachable from a pure ES-module harness; the other four sites live inside render functions that need a DOM to enter. Where a source assertion could pass on a decoration alone, a behavioural probe of the thing it feeds sits beside it — `test_insert_section_honours_the_declared_order` drives the real `insertSection` with a host that orders `conflicts` FIRST and shows the same press landing the section at opposite ends of the same fragment, which is what makes `runAddSection`'s one added argument matter. **PROVED AGAINST THE DEFECT, not just alongside the fix.** This file alone, dropped into a pristine worktree at `0b4e8bbf`, is **11 failed / 2 passed** — each failure its own leaf (it was 10 of 12 until Copilot's review at `b4efe155` earned a thirteenth test, below). The two that pass there are deliberate and say so in their docstrings: `applyTokens`' return contract is unchanged by the fix, and `insertSection` already honoured `options.display`, which is exactly why the caller omitting it was invisible. ## Measured, under `validate.yml`'s own invocation ``` python -m pytest -q <the 28-file list> --noconftest 712 passed, 2 skipped python -m pytest -q tests/test_display_facet_leaves.py --noconftest 13 passed ``` Re-run at the merged head `b4efe155`. The list was `694 passed` — slice S8's own figure, unchanged by this branch — until **#27 landed and appended `tests/test_binding_stylesheets.py`** to it; the two skips are that file's own and deliberate (no assembly has placed openXdox's six contributed modules in this bundle, RULED Q5). python 3.12.3 / pytest 8.4.2. **The census is RE-MEASURED, not adjusted**: `tests/fixtures/web_boundary_census.yaml`'s own ratchet re-derives every `loc` from the tree and re-sums the class totals, so the six rows this branch grows and the two totals move together — A `17883 -> 17904`, C `12564 -> 12617` at the base, and **A `18019` / C `12519` at the merged head**, DERIVED from the merged rows and never added from the two sides: #27 moves `views/view_extension.js` A `877 -> 992` and `styles.css` C `2595 -> 2497`, this branch moves six other rows, the two row sets are DISJOINT, and every one of the 42 rows' `loc` was re-measured against the merged tree with the test's own rule — zero mismatches. `tests/test_display_facet.py`'s two inline style doubles carried only `setProperty`; `applyTokens` now clears before it writes, so they carry `removeProperty` too and delete what they recorded — the shape that file's own `_DOM_STUB` has always had. It is an ADMITTED created file, so this is not a declared edit. ## A SEPARATE `- name: pytest (S7 residue)` STEP, and it is a merge decision with a measurement behind it openDox-code **#27** (RULED Q7's binding stylesheets) appends `tests/test_binding_stylesheets.py` at the same list tail, so a second append there is a textual conflict on whichever of the two lands second — over a line whose ORDER carries no meaning. A separate step conflicts with nothing, reports its own red/green in the check's log, and folds back onto the list in one hunk whenever an act wants it there. **That is now measured rather than forecast.** #27 landed first (`5c137a90`) and this branch merged `main` at `b4efe155`: `.github/workflows/validate.yml` AUTO-MERGED with both appends intact, and the census fixture's `totals:` block was the merge's ONLY conflict. ## What this does NOT do — residue, by name 1. **`tests/test_doc_wheel.py:393` reads a 600-CHARACTER window** from `renderDocWheel(selector` to find `renderAbstract(abstract,` — 470 characters apart at `0b4e8bbf`. A house-style comment block at that exact site (531 characters) moves the callback out of the window and turns a WIRING assertion red for a reason that has nothing to do with wiring. The wheel mount therefore carries a one-line comment here and the argument for it lives in the new test file, the manifest note and the commit message. **Repairing the window is an edit to a carved test file at lines the paired annotation does not declare**, so it is registered rather than taken — the same disposition Act 1 gave slice S8's two path constants, and the one this act exists to discharge. 2. **`views/viewer.js:262`'s `doc.stage` pill** stays where the S7 note's register put it: a boundary-note amendment, not a declared edit. 3. The **one unapplied** declared-edit row at this leg (`doxbench_scope_types.py`'s three `adapter calls` lines, a group-3 record against open successor openxFactory#838) is untouched and still unapplied. ## Gate | | | | --- | --- | | required check | `validate` only | | base | `main` @ `0b4e8bbf` | | landing | AFTER its paired openxFactory annotation (RULING Q-L1) | 🤖 Generated with [Claude Code](https://claude.com/claude-code) Lane: openxfactory-4 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>




§ 3.4 slice S7 — parameterize class C
openDox-specdocs/front-end-package-boundary.md§ 5 row S7 at7d12428c:COMPLETE.
§ 4.5 assertion 4 is GREEN and itsxfail(strict=True)marker is gone**, in the commit that closed it — which is whatstrict=Trueis for. Still DRAFT: the orchestrator lands. Stacked on S5's leg B (#20→fix/view-registry-fail-closed#18→build/s4-split-route-tails#17→main`), merged in twice as that base moved.The mechanism (§ 4.3's five steps)
serve.pyexposes the profile's DISPLAY facet on/capabilitiesserve.pycapabilities["display"], beside S5'scapabilities["views"]— "no new route and no second fetch"app.jsputs that facet in the context object every binding receivesapp.jsreadDisplay(probedCaps)→ctx.display, declared inCTX_KEYS(both halves) and handed to contributed panels tooviews/display.js—label/one/many/short/gate/status/area/token/act/artifact/items, every one keyed by a roleDisplayFacetErrorwhere the server is built; an unknown role is aDisplayRoleErrorin the browserAbsent facet → openDox's OWN NEUTRAL WORDS, and that is a stated departure from
§ 4.3 point 5. The note's argument for "refusal, not a default" is that "a
fallback to TODAY'S WORDS is how the literals survive the refactor invisibly".
NEUTRAL_DISPLAYis the opposite of today's words —sources → groups → candidates → selections → submissions → completions— so a shell with no hostfacet is VISIBLY un-domained rather than invisibly re-domained, which is § 2.1's
own test for class C ("replace every governance word in it with a placeholder
and the file still renders correctly") performed by the product rather than
asserted about it. The absence is NAMED on the payload (
host_facet: "absent"with the profile), on
host_view_extensions' own precedent, andtests/test_display_facet.py::test_a_student_install_renders_no_openxfactory_wordis the assertion.
§ 2.2 rule 3's schema half, declared once — ELEVEN seam tables
A class-C file reads the snapshot through a role. The snapshot's field names, its
closed enum values, the seam keys that must be spelled identically on both sides
of a boundary, and the staging template's heading order are declared in ONE
class-A module (
views/display.js), each carried in the census as a declaredexemption with its own reason:
SNAPSHOT_FIELDS,SNAPSHOT_VALUES,ACT_IDS,TILE_KINDS,SCOPE_KINDS,TAB_IDS,SESSION_SCOPE_KINDS,SESSION_BRANCH_NAMESPACES,DRILL_KINDS,DRAFT_PATHS,SECTION_ORDER. Everyone is MATCHED and never RENDERED; what a human reads is always
display.<role>.The eighteen files in assertion 4's scope
Fourteen class C —
views/model.js·views/wheel-model.js·views/funnel.js·views/wheel.js·views/board.js·views/canvas.js·views/canvas-model.js·views/lineage.js·views/doc-wheel.js·views/explorer.js·views/outline-model.js·views/staging-workbench.js·index.html·styles.css.Four declared class-A tails —
views/docs.js(AREA_ORDER→ the profile'scorpus areas) ·
views/grouping.js(TALLY_FIELDS→ the spine by role) ·views/repo-selector-model.js(STATIONS→ the spine, deduplicated by snapshotfield) ·
views/staging-workbench-model.js(STATUS_BRAINSTORM/BRAINSTORM_AREA/STAGING_AREA→capturedStatus()/capturedArea()/organizedArea()).Plus
app.js,serve.py,canvas_drafts.py,view_extension.py/.js, andthree created files (
display_profile.py,views/display.js,tests/test_display_facet.py).Assertion 4: the RULE, not a word search
S1's own "NOT FIXED HERE" note asked for exactly this and named S7 as the slice
that would decide it: "a bare identifier or property access that only READS a
snapshot schema key still trips this sweep, even though note § 2.2 rule 3 treats
a schema key as distinct from a rendered word … left for S7 to decide against the
real vocabulary sites it is parameterizing."
The rule is one line — a class-C file may carry no governance word in a
position a HUMAN READS, and none in a NAME that would have to change if the
domain's word changed — with one position rule per language:
.jsstring literals only, comments and regex literals excluded; KEYPOSITION excluded, as openXdox-code's
test_no_hardcoded_status_words.pyexcludes dict keys and for the same reason.
.htmltext nodes plus the five rendered attributes.id="tab-docs"isthe handle
app.jsreaches the button by — renaming it renames a seam, not aword.
.csscustom-property names andcontent:values, which is RULED Q7's"the one stable styling surface" in as many words.
Two DECLARED, CHECKED exemption classes carry what is left, both data in
tests/fixtures/web_boundary_census.yamlbeside their reasons:style_hooks(compound class tokens, the legal set DERIVED from
styles.cssrather than fromthe list, so a hook that stops being a selector stops being legal — a BARE
governance word is never a hook) and
prose_exemptions(the six plain-English"draft" sites in
views/canvas.js, keyed by (path, LITERAL) and checkedpresent — openXdox-code's
PROSE_EXEMPTis keyed by (module, lineno) and has tobe re-audited on every reflow).
A FINDING the rewrite fixes.
tests/test_web_boundary.py's_strip_comments_for_scantracks quotes but NOT regex literals, so a JS regexcarrying a quote character (
/[&<>"']/gexplorer.js:33,/[&<>"]/gcanvas-model.js:30,/^\s*(?:```|~~~)/wheel-model.js:808) opens a phantomstring and every
//comment after it is left UNSTRIPPED and counted. 606 of the744 JS hits in the 960-violation baseline were comment prose. It survived S1
because S1 only ever asked "does this file still carry a word", which no
desynchronisation could make false; a sweep that must reach ZERO cannot stand on
it. The strip stays exactly where it was for the assertion that still uses it,
and
test_the_rule_and_the_instrument_agreeholds the two together so the rulemay be narrower than the instrument but never blind.
The last two of S1's four REGISTER nits
Item 3 of
test_web_boundary.py's S4 block leaves them to "the slice thatdischarges it":
_declares_identifiernow demandsconst/let/var/function/classat thehead of a line, so an identifier surviving only in a comment — or as part of a
longer name — no longer answers for one that is gone.
exempt:was never cross-checked againstdeclared_exemptions. They are held to SET EQUALITY per path, andexempt:accepts a list:
views/display.jscarries eleven seam tables and a scalarwould have made ten of them invisible to the check that was supposed to be
watching them.
Two bugs found and fixed on the way
views/outline-model.jsrenamed the marker-fenced section roleproposal-element→marked-elementand its two consumers had not followed.views/staging-workbench.js's chip table still keyed on the old spelling (so amarked section rendered its raw role) and
tests/test_outline_model.pystillasserted it. Both take the new name here.
views/wheel.js's module-levelACTION_MOUNTERSnameddisposeColumn,which S5 leg B's round-2 Copilot fix made a
constinsiderenderWheel— aReferenceError the first time a human pressed a wheel verb. The four entries
now reach the column through
opts.dispose, as theirproposesiblingalready did, keeping the
ACT_IDSseam keys.A regression averted:
applyTokenswrites only what the host declaredstyles.cssrestates all four--st-*tokens per theme (light, the darkmedia query, and the two explicit
data-themechoices) and an inline customproperty on
:rootoutranks every one of those rules. Writing the neutral valuesunconditionally would have pinned the light palette onto every install that
declares no tokens — which is every install in the estate today — and ended
dark mode for all of them.
Display.applyTokenstherefore writes onlyhost-declared roles, and
test_only_the_tokens_a_host_declared_are_written_onto_rootis the probe.
tests/test_display_facet.py— 25 tests, 5 node probestest_web_boundary.pymeasures the BOUNDARY and would be just as green if everyword had been DELETED. This file measures the other half: the two halves of the
facet declare the same roles in the same order and the same neutral words; a
partial declaration is legal and an unknown role, a blank word and a non-mapping
role table are refused;
host_displaykeeps the two absences apart; the shellreads the facet at exactly one call site and hands it down through
ctx; andfive node probes drive the REAL modules — resolve-by-role and its refusal, the
shell refusing a payload it cannot describe,
applyTokens, two real viewsrendering declared vs neutral words differently, and the workbench model's
setDisplaymoving both the words and the corpus prefix. It joinsvalidate.yml'snarrowed list on the same footing as its eight neighbours.
The literal count, per file (the RULE, measured at
a99eba03→ head)index.html5→0 ·styles.css160→0 ·board.js39→0 ·canvas-model.js3→0 ·canvas.js30→6 (the six declared prose exemptions) ·doc-wheel.js4→0 ·docs.js5→0 ·explorer.js9→0 ·funnel.js25→0 ·grouping.js11→0 ·lineage.js17→0 ·model.js37→0 ·outline-model.js3→0 ·repo-selector-model.js9→0 ·staging-workbench-model.js37→0 ·staging-workbench.js23→0 ·wheel-model.js30→0 ·wheel.js26→0.473 → 6, and the six are declared, reasoned and checked present: ZERO
violations. S1's coarse instrument still sees 339 hits across the same
eighteen files — in comments, in identifiers, in selectors — which is exactly
what the rule now declines to count, and
test_the_rule_and_the_instrument_agreeholds the two together.
Five Copilot rounds, 33 threads, all replied and all resolved
Round 1 (12). Five live and fixed — the register-state literals in
board.js,funnel.js,canvas.jsandwheel-model.js'sisPromotableTile(the badge case is the worst: the right word beside a permanent zero), and
ACT_IDSdeclaring five verb seam keys where the act vocabulary declared four,so
display.act("demote")refused and a host declaringacts.demotewasrejected as an unknown role. Seven named harness closures and a missing test
file that later commits on this branch already carried.
Round 2 (6). The direction the parameterization was still incomplete in: the
value a view MATCHED went through the facet, the value it RENDERED did not.
views/display.jsgains the reverse lookup —registerRole(value)/documentStageRole(value)— so a view resolves an enum value to a ROLE and thenasks for the word and the class by that role; both then follow a host override
together.
styles.css's four.tile-candidate.*hooks are renamed to the rolesfor the same reason. Plus
sparseNoticenot forwarding the facet to the helperthat had just been made display-aware, one exact-source-string assertion in
test_doc_surfaces.pythat moved when a binding gaineddisplay: ctx.display,and one loose check of my own — an
or "display" in textfallback that wouldhave taken a comment as proof a file reads the facet.
And the one recorded as owed, then done: a declared corpus prefix must end
in
/."ideation/staging"would both claimideation/stagingfoo/x.mdandcompose
ideation/staging<id>;display_profile._corpus_prefixrefuses it atthe declaration rather than normalising at each of the several call sites.
Rounds 3–4 (13), one family, and the fix is one mechanism. After the facet
was installed, the value a view MATCHED on went through it and the value a view
SHOWED A HUMAN did not.
views/display.jsgains three accessors that do thewhole hop in one call —
documentStageWord(value),registerStateWord(value),changeStatusWord(value)— value → role → the registered domain's word, withthe RAW VALUE returned where no declared role carries it, because an enum value
this shell has never been told about is the generator's news.
changes[].statusneeded a mechanism the other two did not: it is not a
SNAPSHOT_VALUEStablebut is declared on the two change STATIONS, so
CHANGE_STATUS_ROLEdeclaresthat one fixed relation (submission → open, completion → completed) as the
eighth seam table.
The discipline is identical at all thirteen sites: the GROUPING KEY, the FILTER
VALUE and the
dataset.*attribute stay the raw enum — that is what makes twodocuments the same stage — and only the WORD goes through the facet.
board.js's footer breakdown ·lineage.js'sstageSublineand its+N otherremainder ·
doc-wheel.js's tile sub-line ·docs.js's row text and stagefilter LABELS ·
funnel.js's change pill,docCardmeta and stage filterlabels ·
wheel-model.js's candidate sub-line and its synthesized placeholder'snoun ·
canvas.js's gap prompt and BOTH sides of the supersession arrow (thedestination resolved through the facet while the origin was still the enum,
which reads worse than either because it looks deliberate).
Three more, each a different shape of the same fault:
canvas-model.js'sREGISTER_SEED_STATE,canvas_drafts.py's"latent"/"superseded", and the browser's matching. A host override ofvalues.register_statesplit them apart — the browser matched the declaredvocabulary while the server wrote openDox's, so a newly drafted possible was
invisible to the very install that created it.
canvas_drafts.register_state(role)is the server half andseedState(display)the client one;buildCanvasModel,listCanvasClustersand
composerPlantake the facet so the seed travels.block before
probeCapabilities()was awaited, so the ONE always-visiblesurface in the shell kept openDox's neutral words for the life of the page
however the host spelled its stations. It now mounts beside
applyShellVocabulary, andrenderStatstakes the facet."?"key, and why it kept coming back.sync-census.pyrewrote
totals:with(?: .*\n)+, and the last totals line has no trailingnewline (the text is partitioned on
\nfiles:\n), so the old line survivedthe rewrite and the new block duplicated it — twice, both times as a merge
artefact. The tool is fixed AND the census now loads through a
SafeLoadersubclass that REFUSES a duplicate mapping key:
yaml.safe_loadkeeps the lastvalue silently, so a declaration that says two things reads as unambiguous.
A loader catches this class; a reviewer did not, twice.
Round 5 (1), on the mechanism rounds 3–4 introduced. The reverse lookup
answers the FIRST role whose declared value matches, so a host mapping two roles
to one enum value would have had one role's cards silently rendered as the
other's — the wrong word AND the wrong
cstate-<role>hook._refuse_duplicate_enum_valuesrefuses it where the facet is built, naming bothroles and the value. Checked AFTER the merge, not on the declaration alone,
because the collision that matters is between a value the host declares and one
openDox still SHIPS for another role — which is exactly what a partial override
causes, and a partial override is legal by design.
Verification
validate, locally and in CI: 283 passed, 0 xfailed — assertion 4is green and unmarked, and assertion 2's marker came off with S6 in the base.
views/lineage.jsfails it, named by file, line and value.display.jsimporter now copy the siblingbeside it, with a
{"type": "module"}package where there was not one; theclosure was audited mechanically, not by eye.
ANNOTATION OWED (openxFactory — NOT authored here)
scripts/verify-carve-arrival.py --phase B, run from a fresh read-onlyopenxFactory clone at
maina1429885, with the declared conftest replica named(
--replica-at tests/ideation-dashboard/conftest.py=tests/conftest.py), refusesthis leg at 41 rows, of which 32 are S7's and 9 are inherited from
S1–S6 (attributed by running the same verifier against the BASE tree and
differencing). The three classes:
arrival-digest-mismatch× 17 —moved_verbatimrows this slice edits:index.html,styles.css,canvas_drafts.py, and the fourteen view modules.arrival-undeclared-edit× 12 — rows whoseedits[].linesdo not yet declarethis slice's lines:
views/staging-workbench-model.jsand eleven test files.arrival-undeclared-file× 3 —src/opendox/display_profile.py,src/opendox/web/views/display.jsandtests/test_display_facet.py, all threeCREATED here and all three RULED OQ-C ("the manifest declares what LEAVES
openxFactory, never what a destination assembles").
The verbatim refusals are in the FINAL REPORT for this slice; the manifest
amendment and the
created:admissions are the orchestrator's act, not thisPR's.
AMENDMENT OWED (§ 1.1, and the packet row)
The boundary note's § 1.1 measures
src/opendox/web/at openDox-codea99eba03as 42 blobs — 40 hand-authored and 2 vendored — totalling 30,585 lines. At
this leg's head the tree is 42 blobs — 40 hand-authored and 2 vendored —
totalling 31,858 lines (31,856 hand-authored): the COUNT is a coincidence, and
the composition is not. Four files left (
dispose.js,gate.js,swb-create.js,swb-session.js— S5's contributed gate loop) and four arrived(
view_extension.jsS3,intent-binding.jsS2,projection-index.jsS6,display.jsS7). S7's own contribution is +1,424 lines net across 22 filesunder
web/, of whichviews/display.jsis the largest single arrival. The rootfiles are now
index.html129,app.js1,685,styles.css2,595, with 37 filesunder
views/. The § 1.1 reconciliation paragraph's packet figure ("40 files,30,410 lines") is amended in the packet, per § 5 row S7.
Lane: openxfactory-4-opendox-extraction
Refs opensoft/openXfactory#656
🤖 Generated with Claude Code